Skip to content

Commit 2bed8ab

Browse files
authored
fix: errors persists if there are any other errors in workspace (microsoft#361)
* Update lsp_server.py * fix: linting
1 parent 78868dc commit 2bed8ab

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

bundled/tool/lsp_server.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,6 @@ def _clear_diagnostics(document: workspace.Document) -> None:
202202

203203

204204
def _linting_helper(document: workspace.Document) -> None:
205-
global _reported_file_paths
206205
try:
207206
extra_args = []
208207

@@ -260,7 +259,7 @@ def _linting_helper(document: workspace.Document) -> None:
260259
# an empty diagnostic is returned to clear any old errors out.
261260
_clear_diagnostics(document)
262261

263-
if reportingScope == ("workspace", "custom"):
262+
if reportingScope in ("workspace", "custom"):
264263
for file_path in _reported_file_paths:
265264
if file_path not in parse_results:
266265
uri = uris.from_fs_path(file_path)

0 commit comments

Comments
 (0)