diff options
Diffstat (limited to 'autoload')
-rw-r--r-- | autoload/ale/lsp/message.vim | 4 | ||||
-rw-r--r-- | autoload/ale/lsp/tsserver_message.vim | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/autoload/ale/lsp/message.vim b/autoload/ale/lsp/message.vim index 7910247d..31a9b210 100644 --- a/autoload/ale/lsp/message.vim +++ b/autoload/ale/lsp/message.vim @@ -53,7 +53,7 @@ function! ale#lsp#message#DidOpen(buffer, language_id) abort \ 'uri': ale#path#ToURI(expand('#' . a:buffer . ':p')), \ 'languageId': a:language_id, \ 'version': ale#lsp#message#GetNextVersionID(), - \ 'text': join(l:lines, "\n"), + \ 'text': join(l:lines, "\n") . "\n", \ }, \}] endfunction @@ -67,7 +67,7 @@ function! ale#lsp#message#DidChange(buffer) abort \ 'uri': ale#path#ToURI(expand('#' . a:buffer . ':p')), \ 'version': ale#lsp#message#GetNextVersionID(), \ }, - \ 'contentChanges': [{'text': join(l:lines, "\n")}] + \ 'contentChanges': [{'text': join(l:lines, "\n") . "\n"}] \}] endfunction diff --git a/autoload/ale/lsp/tsserver_message.vim b/autoload/ale/lsp/tsserver_message.vim index ab18d742..e2706ed5 100644 --- a/autoload/ale/lsp/tsserver_message.vim +++ b/autoload/ale/lsp/tsserver_message.vim @@ -28,7 +28,7 @@ function! ale#lsp#tsserver_message#Change(buffer) abort \ 'offset': 1, \ 'endLine': 1073741824, \ 'endOffset': 1, - \ 'insertString': join(l:lines, "\n"), + \ 'insertString': join(l:lines, "\n") . "\n", \}] endfunction |