Commit 19cf7e5 1 parent 8f64264 commit 19cf7e5 Copy full SHA for 19cf7e5
File tree 1 file changed +2
-3
lines changed
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -106,14 +106,13 @@ async def update_errors(self) -> None:
106
106
# Publishing empty diagnostics to clear errors in VSCode and reset self.file_tracker
107
107
for document_path in self .file_tracker :
108
108
await _publish_diagnostics (self .output_channel , document_path , [])
109
- self .file_tracker = set ()
109
+ self .file_tracker . clear ()
110
110
111
111
try :
112
112
model_errors = query .get_invalid_taint_models (self .pyre_connection )
113
113
diagnostics = self .invalid_models_to_diagnostics (model_errors )
114
114
# 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 ())
117
116
118
117
await self .show_model_errors_to_client (diagnostics )
119
118
except PyreQueryError as e :
You can’t perform that action at this time.
0 commit comments