mirror of
https://github.com/neovim/neovim.git
synced 2025-12-15 10:55:40 +00:00
fix(lsp): fix handler signature, tests
- not necessary on master: got lost in the vim.lsp.diagnostic => vim.diagnostic migration - fix tests which accidentally depended on previous session - ref #15504
This commit is contained in:
@@ -455,12 +455,15 @@ local function text_document_did_open_handler(bufnr, client)
|
||||
vim.schedule(function()
|
||||
vim.lsp.handlers["textDocument/publishDiagnostics"](
|
||||
nil,
|
||||
"textDocument/publishDiagnostics",
|
||||
{
|
||||
diagnostics = vim.lsp.diagnostic.get(bufnr, client.id),
|
||||
uri = vim.uri_from_bufnr(bufnr),
|
||||
},
|
||||
client.id
|
||||
{
|
||||
method="textDocument/publishDiagnostics",
|
||||
client_id=client.id,
|
||||
bufnr=bufnr,
|
||||
}
|
||||
)
|
||||
end)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user