From 14cdaca6a8180c6e3079cd2e73fa75a5eb5253da Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Sun, 26 Sep 2021 14:21:40 -0700 Subject: 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 --- runtime/lua/vim/lsp.lua | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'runtime/lua/vim') diff --git a/runtime/lua/vim/lsp.lua b/runtime/lua/vim/lsp.lua index 3783902941..06d703e5ce 100644 --- a/runtime/lua/vim/lsp.lua +++ b/runtime/lua/vim/lsp.lua @@ -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 -- cgit