Commit 4ac80be
refactored pysa_server.py to stage for Pysa's Language Server specific changes (#409)
Summary:
Expected outcome for this PR is to display and highlight errors for `.pysa` files, via the Pysa VSCode Extension.
This is part of the larger issue of creating a VSCode extension for Pysa in the MLH-Fellowship program listed [here](MLH-Fellowship#4) and has been discussed with gbleaney before.
Possible milestones:
- [X] Make template extension code for Pysa by cloning Pyre
- [X] Add new functions necessary for handling model validation errors to `pysa_server.py` and `persistent.py`
- [X] Connect everything and call `get_invalid_taint_models()` in `query.py`
- [X] Make relevant changes on the extension side
- [x] Clean up the server of old Pyre code
Output so far:

Errors are being calculated but are not being published due to `server_state.opened_documents` list being empty as show in the output. The publishing diagnostics function iterates over this list and sends the errors to VSCode. It's empty right now and hence, the errors are never published. (Opening/closing documents is not being detected)
Pull Request resolved: #409
Reviewed By: arthaud
Differential Revision: D27857795
Pulled By: gbleaney
fbshipit-source-id: b9e8b8026aa48ee5d79db2ed9643ea7e70148e041 parent a544484 commit 4ac80be
File tree
3 files changed
+24
-315
lines changed- client/commands/v2
- tools/ide_plugins/pysa-vscode
- src
3 files changed
+24
-315
lines changed
0 commit comments