Skip to content

Commit

Permalink
misc fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
m0mosenpai committed Sep 2, 2021
1 parent ec3fbb6 commit ee73685
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions client/commands/v2/pysa_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,14 +106,13 @@ async def update_errors(self) -> None:
# Publishing empty diagnostics to clear errors in VSCode and reset self.file_tracker
for document_path in self.file_tracker:
await _publish_diagnostics(self.output_channel, document_path, [])
self.file_tracker = set()
self.file_tracker.clear()

try:
model_errors = query.get_invalid_taint_models(self.pyre_connection)
diagnostics = self.invalid_models_to_diagnostics(model_errors)
# Keep track of files we publish diagnostics for
for path in diagnostics.keys():
self.file_tracker.add(path)
self.file_tracker.update(diagnostics.keys())

await self.show_model_errors_to_client(diagnostics)
except PyreQueryError as e:
Expand Down

0 comments on commit ee73685

Please sign in to comment.