Skip to content

Commit

Permalink
Fix errors not don't clearing up after being fixed (microsoft#130, mi…
Browse files Browse the repository at this point in the history
  • Loading branch information
insilications committed Sep 5, 2023
1 parent aee8e75 commit ca7b184
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bundled/tool/lsp_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,8 @@ def _linting_helper(document: workspace.Document) -> None:
if file_path not in parse_results:
uri = uris.from_fs_path(file_path)
LSP_SERVER.publish_diagnostics(uri, [])
else:
LSP_SERVER.publish_diagnostics(document.uri, [])
except Exception:
LSP_SERVER.show_message_log(
f"Linting failed with error:\r\n{traceback.format_exc()}",
Expand Down

0 comments on commit ca7b184

Please sign in to comment.