-
Notifications
You must be signed in to change notification settings - Fork 442
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
added support for Pysa Model Validation in VSCode Extension #433
Open
m0mosenpai
wants to merge
31
commits into
facebook:main
Choose a base branch
from
MLH-Fellowship:apply-validation-changes
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
6c72b5d
added rough code for model validation for .pysa files
m0mosenpai 0ce48d2
untrack documentation files
m0mosenpai ea2b235
hardcoded path value for testing publishing diagnostics
m0mosenpai a09ff0b
fixed errors highlighted one line below, fixed .pysa files not being …
m0mosenpai 6c3b0b5
fixed error validation only working at startup
m0mosenpai fa008b7
fixed formatting for example files
m0mosenpai 3d282e8
fixed function arguments not conforming to enforced typing
m0mosenpai b5d9268
removed PysaServerHandler, refactored things into PysaServer class
m0mosenpai da094da
removed debug statements, fixed formatting
m0mosenpai b1e22b5
added try catch for Pyre Parsing errors
m0mosenpai 79dc130
minor refactoring, minor fixes
m0mosenpai d63f8f5
undo changes in exercises
m0mosenpai c001ebb
undo pysa specific changes back to refactor only
m0mosenpai 10b76f3
added support for model validation in Pysa VSCode Plugin
m0mosenpai 955dd8b
fixed missing typing for some arguments
m0mosenpai 2377ab6
rebased with small changes
m0mosenpai b32d099
handle path being None
m0mosenpai 3793e1a
changed to relative imports
m0mosenpai 3f3c5e0
updated error message for None path
m0mosenpai 1357024
undo .pyre_configuration changes
m0mosenpai 5114aa2
misc fixes
m0mosenpai 5d3fa19
fixes in import statements
m0mosenpai 84a37d0
revert import changes
m0mosenpai f51ee97
sort imports
m0mosenpai 917f931
import changes
m0mosenpai 52d5e28
Revert "import changes"
m0mosenpai 7b964fe
prelim changes to clear out errors in all previous files
m0mosenpai 9b0e2a6
fixes, removed logging comments
m0mosenpai 8f64264
updated tracking published diagnostic files instead of open ones
m0mosenpai 19cf7e5
misc fixes
m0mosenpai 516a32c
fix change due to rebase
m0mosenpai File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would avoid relying on things in the
api
package -- those are considered "external" APIs that are currently going through multiple redundant levels of indirections (e.g. shelling out topyre
executable, which may or may not match the trunk version). For v2 command, there's no need to shell out to anything: we could query the background Pyre server by invoking command-internal logic directly.Querying the Pyre server in pure Python can be done with
commands.v2.query.query_server
:Some followup logic may be needed to extract useful info from the
response_json
dict.