Skip to content

Commit 341cdbe

Browse files
committed
Don't hide diagnostics from outside "workspace"
Fixes sublimelsp#221 If language servers end up sending undesirable diagnostics, we should look at the server first
1 parent a16a00e commit 341cdbe

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

plugin/core/diagnostics.py

-6
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
from .logging import debug
44
from .url import uri_to_filename
55
from .protocol import Diagnostic
6-
from .workspace import is_in_workspace
76
from .events import Events
87

98
assert Diagnostic
@@ -45,11 +44,6 @@ def handle_diagnostics(update: 'Any'):
4544
file_path = uri_to_filename(update.get('uri'))
4645
window = sublime.active_window()
4746

48-
if not is_in_workspace(window, file_path):
49-
debug("Skipping diagnostics for file", file_path,
50-
" it is not in the workspace")
51-
return
52-
5347
diagnostics = list(
5448
Diagnostic.from_lsp(item) for item in update.get('diagnostics', []))
5549

0 commit comments

Comments
 (0)