We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d542bbc commit 533aef1Copy full SHA for 533aef1
autoload/lsp/ui/vim/diagnostics/textprop.vim
@@ -95,6 +95,12 @@ function! s:clear_highlights(server_name, path) abort
95
if !s:enabled | return | endif
96
97
let l:bufnr = bufnr(a:path)
98
+
99
+ if l:bufnr == -1
100
+ call lsp#log('Skipping clear_highlights for ' . a:path . ': buffer is not loaded')
101
+ return
102
+ endif
103
104
for l:severity in keys(s:severity_sign_names_mapping)
105
let l:prop_type = s:get_prop_type(a:server_name, l:severity)
106
call prop_remove({
0 commit comments