mirror of
https://github.com/neovim/neovim.git
synced 2025-01-01 17:23:36 -07: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
|
if client.resolved_capabilities.text_document_save then
|
||||||
local included_text
|
local included_text
|
||||||
if client.resolved_capabilities.text_document_save_include_text then
|
if client.resolved_capabilities.text_document_save_include_text then
|
||||||
included_text = text()
|
included_text = text(bufnr)
|
||||||
end
|
end
|
||||||
client.notify('textDocument/didSave', {
|
client.notify('textDocument/didSave', {
|
||||||
textDocument = {
|
textDocument = {
|
||||||
|
Loading…
Reference in New Issue
Block a user