Skip to content

Commit

Permalink
Fix errors not don't clearing up after being fixed (#130, #139) (#141)
Browse files Browse the repository at this point in the history
  • Loading branch information
insilications authored Sep 5, 2023
1 parent aee8e75 commit faa32cb
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 faa32cb

Please sign in to comment.