mirror of
https://github.com/neovim/neovim
synced 2025-07-17 01:31:48 +00: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:
committed by
GitHub
parent
bec7f47cee
commit
96614f84ab
@ -289,7 +289,6 @@ function M.references(context)
|
|||||||
params.context = context or {
|
params.context = context or {
|
||||||
includeDeclaration = true;
|
includeDeclaration = true;
|
||||||
}
|
}
|
||||||
params[vim.type_idx] = vim.types.dictionary
|
|
||||||
request('textDocument/references', params)
|
request('textDocument/references', params)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user