aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/lsp/rpc.lua
diff options
context:
space:
mode:
authorLewis Russell <lewis6991@gmail.com>2024-02-11 11:42:21 +0000
committerGitHub <noreply@github.com>2024-02-11 11:42:21 +0000
commit8e86193502608c4a833f6996b942e8dd0eb8e476 (patch)
treefb84bd8ab82afc3938586a1d5e6c418cc8fd9330 /runtime/lua/vim/lsp/rpc.lua
parentd48f75e42e4c340f9c191c126d38aa9494741ccc (diff)
parenteac7e3fc6c738d7023c104f09341dbb10bf3c4bc (diff)
downloadrneovim-8e86193502608c4a833f6996b942e8dd0eb8e476.tar.gz
rneovim-8e86193502608c4a833f6996b942e8dd0eb8e476.tar.bz2
rneovim-8e86193502608c4a833f6996b942e8dd0eb8e476.zip
Merge pull request #27420 from MariaSolOs/warning-anxiety
refactor(lsp): fix type annotations and add shared diagnostic helper
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,