Skip to content

Commit ee73685

Browse files
committed
misc fixes
1 parent ec3fbb6 commit ee73685

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

client/commands/v2/pysa_server.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -106,14 +106,13 @@ async def update_errors(self) -> None:
106106
# Publishing empty diagnostics to clear errors in VSCode and reset self.file_tracker
107107
for document_path in self.file_tracker:
108108
await _publish_diagnostics(self.output_channel, document_path, [])
109-
self.file_tracker = set()
109+
self.file_tracker.clear()
110110

111111
try:
112112
model_errors = query.get_invalid_taint_models(self.pyre_connection)
113113
diagnostics = self.invalid_models_to_diagnostics(model_errors)
114114
# Keep track of files we publish diagnostics for
115-
for path in diagnostics.keys():
116-
self.file_tracker.add(path)
115+
self.file_tracker.update(diagnostics.keys())
117116

118117
await self.show_model_errors_to_client(diagnostics)
119118
except PyreQueryError as e:

0 commit comments

Comments
 (0)