aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/lsp/buf.lua
diff options
context:
space:
mode:
authorMichael Lingelbach <m.j.lbach@gmail.com>2021-09-27 00:32:30 -0700
committerGitHub <noreply@github.com>2021-09-27 00:32:30 -0700
commit96614f84abb43ad2e6b610dfbbda4d075a2a0aad (patch)
tree919d38635057954cd1664931a1cee5c794f730c1 /runtime/lua/vim/lsp/buf.lua
parentbec7f47cee8b69fbaa3452762745c9d0e8ea4256 (diff)
downloadrneovim-96614f84abb43ad2e6b610dfbbda4d075a2a0aad.tar.gz
rneovim-96614f84abb43ad2e6b610dfbbda4d075a2a0aad.tar.bz2
rneovim-96614f84abb43ad2e6b610dfbbda4d075a2a0aad.zip
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.
Diffstat (limited to 'runtime/lua/vim/lsp/buf.lua')
-rw-r--r--runtime/lua/vim/lsp/buf.lua1
1 files changed, 0 insertions, 1 deletions
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