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:
Michael Lingelbach 2021-09-27 00:32:30 -07:00 committed by GitHub
parent bec7f47cee
commit 96614f84ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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