Skip to content

Commit 745a655

Browse files
committed
Typing fix (file may not be open)
1 parent 8ad289d commit 745a655

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

plugin/diagnostics.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,8 @@ def update_diagnostics_in_view(view: sublime.View, diagnostics: 'List[Diagnostic
169169
def handle_diagnostics(update: DiagnosticsUpdate):
170170
window = sublime.active_window()
171171
view = window.find_open_file(update.file_path)
172-
update_diagnostics_in_view(view, update.diagnostics)
172+
if view:
173+
update_diagnostics_in_view(view, update.diagnostics)
173174
update_diagnostics_panel(window)
174175

175176

0 commit comments

Comments
 (0)