aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/lsp/rpc.lua
diff options
context:
space:
mode:
authorMaria José Solano <majosolano99@gmail.com>2024-02-10 14:03:44 -0800
committerMaria José Solano <majosolano99@gmail.com>2024-02-10 20:05:47 -0800
commitc73d67d283c296bdb7a44a0283346e7b61d837f0 (patch)
treefb36cf4ac5b37d914df770361e128b20eb4914dd /runtime/lua/vim/lsp/rpc.lua
parent8e739af064dec28886694aa448f60a570acd2173 (diff)
downloadrneovim-c73d67d283c296bdb7a44a0283346e7b61d837f0.tar.gz
rneovim-c73d67d283c296bdb7a44a0283346e7b61d837f0.tar.bz2
rneovim-c73d67d283c296bdb7a44a0283346e7b61d837f0.zip
refactor(lsp): add type annotations
Diffstat (limited to 'runtime/lua/vim/lsp/rpc.lua')
-rw-r--r--runtime/lua/vim/lsp/rpc.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/lua/vim/lsp/rpc.lua b/runtime/lua/vim/lsp/rpc.lua
index 1aacf63392..23f70826e5 100644
--- a/runtime/lua/vim/lsp/rpc.lua
+++ b/runtime/lua/vim/lsp/rpc.lua
@@ -498,7 +498,7 @@ function Client:handle_body(body)
if decoded.error then
decoded.error = setmetatable(decoded.error, {
__tostring = M.format_rpc_error,
- })
+ }) --- @type table
end
self:try_call(
M.client_errors.SERVER_RESULT_CALLBACK_ERROR,