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 f7ccf00 commit 4018359Copy full SHA for 4018359
autoload/lsp.vim
@@ -750,7 +750,7 @@ function! s:text_changes(buf, server_name) abort
750
endif
751
752
" When syncKind is Incremental and previous content is saved.
753
- if l:sync_kind == 2 && has_key(s:file_content, a:buf)
+ if l:sync_kind == 2 && has_key(s:file_content, a:buf) && has_key(s:file_content[a:buf], a:server_name)
754
" compute diff
755
let l:old_content = s:get_last_file_content(a:buf, a:server_name)
756
let l:new_content = lsp#utils#buffer#_get_lines(a:buf)
0 commit comments