mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
fix(lsp): explicitly pass bufnr in didSave handler (#16906)
Addresses a regression introduced by the stricter type checking in lua api functions from https://github.com/neovim/neovim/pull/16745
This commit is contained in:
parent
efe6485aca
commit
207307d0fa
@ -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 = {
|
||||
|
Loading…
Reference in New Issue
Block a user