Merge pull request #16907 from neovim/backport-16906-to-release-0.6

[Backport release-0.6] fix(lsp): explicitly pass bufnr in didSave handler
This commit is contained in:
James McCoy 2022-01-17 13:41:06 -05:00 committed by GitHub
commit 239e549d23
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1131,7 +1131,7 @@ function lsp._text_document_did_save_handler(bufnr)
if client.resolved_capabilities.text_document_save then
local included_text
if client.resolved_capabilities.text_document_save_include_text then
included_text = text()
included_text = text(bufnr)
end
client.notify('textDocument/didSave', {
textDocument = {