mirror of
https://github.com/neovim/neovim.git
synced 2025-10-16 06:46:07 +00:00
fix(lsp): explicitly pass bufnr in didSave handler
Addresses a regression introduced by the stricter type checking
in lua api functions from https://github.com/neovim/neovim/pull/16745
(cherry picked from commit 62ae12dc8c
)
This commit is contained in:

committed by
github-actions[bot]
![github-actions[bot]](/assets/img/avatar_default.png)
parent
11f18a8adf
commit
01cb4d8846
@@ -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 = {
|
||||||
|
Reference in New Issue
Block a user