From 96614f84abb43ad2e6b610dfbbda4d075a2a0aad Mon Sep 17 00:00:00 2001 From: Michael Lingelbach Date: Mon, 27 Sep 2021 00:32:30 -0700 Subject: fix(lsp): avoid serializing boolean as key (#15810) In vim.lsp.buf.references, the key vim.type_idx (which evaluates to a boolean) was set to equal vim.types.dictionary. This resulted in a boolean key in json which is not allowed by the json spec, and which lua-cjson fails to serialize. --- runtime/lua/vim/lsp/buf.lua | 1 - 1 file changed, 1 deletion(-) (limited to 'runtime/lua/vim/lsp/buf.lua') diff --git a/runtime/lua/vim/lsp/buf.lua b/runtime/lua/vim/lsp/buf.lua index 96a710ee82..3e6a5ae2f1 100644 --- a/runtime/lua/vim/lsp/buf.lua +++ b/runtime/lua/vim/lsp/buf.lua @@ -289,7 +289,6 @@ function M.references(context) params.context = context or { includeDeclaration = true; } - params[vim.type_idx] = vim.types.dictionary request('textDocument/references', params) end -- cgit