Fix an argument name

This commit is contained in:
w0rp 2022-03-04 19:51:19 +00:00
parent c173b6243d
commit 87ade74b4d
No known key found for this signature in database
GPG Key ID: 0FC1ECAA8C81CD83
1 changed files with 2 additions and 2 deletions

View File

@ -77,14 +77,14 @@ function! ale#lsp#message#DidChange(buffer) abort
\}] \}]
endfunction endfunction
function! ale#lsp#message#DidSave(buffer, includeText) abort function! ale#lsp#message#DidSave(buffer, include_text) abort
let l:response = [1, 'textDocument/didSave', { let l:response = [1, 'textDocument/didSave', {
\ 'textDocument': { \ 'textDocument': {
\ 'uri': ale#util#ToURI(expand('#' . a:buffer . ':p')), \ 'uri': ale#util#ToURI(expand('#' . a:buffer . ':p')),
\ }, \ },
\}] \}]
if a:includeText if a:include_text
let l:response[2].textDocument.version = ale#lsp#message#GetNextVersionID() let l:response[2].textDocument.version = ale#lsp#message#GetNextVersionID()
let l:response[2].text = ale#util#GetBufferContents(a:buffer) let l:response[2].text = ale#util#GetBufferContents(a:buffer)
endif endif