mirror of
https://github.com/neovim/neovim.git
synced 2024-12-19 18:55:14 -07:00
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.
This commit is contained in:
parent
bec7f47cee
commit
96614f84ab
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user