We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f62839f commit f9ff34eCopy full SHA for f9ff34e
client/commands/v2/pysa_server.py
@@ -29,6 +29,7 @@
29
_read_lsp_request,
30
try_initialize,
31
_log_lsp_event,
32
+ _publish_diagnostics,
33
InitializationExit,
34
InitializationSuccess,
35
InitializationFailure,
@@ -139,9 +140,7 @@ async def show_model_errors_to_client(
139
140
self, diagnostics: Dict[Path, List[lsp.Diagnostic]]
141
) -> None:
142
for path, diagnostic in diagnostics.items():
- await _publish_diagnostics(self.output_channel, path, [])
143
- if diagnostic is not None:
144
- await _publish_diagnostics(self.output_channel, path, diagnostic)
+ await _publish_diagnostics(self.output_channel, path, diagnostic or [])
145
146
async def wait_for_exit(self) -> int:
147
while True:
0 commit comments