Skip to content

Commit

Permalink
rebased with small changes
Browse files Browse the repository at this point in the history
  • Loading branch information
m0mosenpai committed Jun 9, 2021
1 parent f62839f commit f9ff34e
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 @@ -29,6 +29,7 @@
_read_lsp_request,
try_initialize,
_log_lsp_event,
_publish_diagnostics,
InitializationExit,
InitializationSuccess,
InitializationFailure,
Expand Down Expand Up @@ -139,9 +140,7 @@ async def show_model_errors_to_client(
self, diagnostics: Dict[Path, List[lsp.Diagnostic]]
) -> None:
for path, diagnostic in diagnostics.items():
await _publish_diagnostics(self.output_channel, path, [])
if diagnostic is not None:
await _publish_diagnostics(self.output_channel, path, diagnostic)
await _publish_diagnostics(self.output_channel, path, diagnostic or [])

async def wait_for_exit(self) -> int:
while True:
Expand Down

0 comments on commit f9ff34e

Please sign in to comment.