From ca7b184dc6cc71606f357f02129f141dbfaa8234 Mon Sep 17 00:00:00 2001 From: Francisco Boni Date: Tue, 5 Sep 2023 10:10:34 -0300 Subject: [PATCH] Fix errors not don't clearing up after being fixed (#130, #139) --- bundled/tool/lsp_server.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bundled/tool/lsp_server.py b/bundled/tool/lsp_server.py index c30fbb4..f0586b0 100644 --- a/bundled/tool/lsp_server.py +++ b/bundled/tool/lsp_server.py @@ -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()}",