aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/lsp/rpc.lua
diff options
context:
space:
mode:
authorAshkan Kiani <ashkan.k.kiani@gmail.com>2019-11-20 11:36:50 -0800
committerAshkan Kiani <ashkan.k.kiani@gmail.com>2019-11-20 11:36:50 -0800
commit0904ffe387f825404d8467f9787678c2251728dd (patch)
tree22993f0df7e624c9440fdde6aa5cc840c9a0dc0f /runtime/lua/vim/lsp/rpc.lua
parent3ae9b3781e0b66f5874971665b38314d61668627 (diff)
downloadrneovim-0904ffe387f825404d8467f9787678c2251728dd.tar.gz
rneovim-0904ffe387f825404d8467f9787678c2251728dd.tar.bz2
rneovim-0904ffe387f825404d8467f9787678c2251728dd.zip
Bugfixes.
- Return after an error in RPC. - Use an empty vim table for serialization.
Diffstat (limited to 'runtime/lua/vim/lsp/rpc.lua')
-rw-r--r--runtime/lua/vim/lsp/rpc.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/lua/vim/lsp/rpc.lua b/runtime/lua/vim/lsp/rpc.lua
index e0ec8863d6..a558f66a42 100644
--- a/runtime/lua/vim/lsp/rpc.lua
+++ b/runtime/lua/vim/lsp/rpc.lua
@@ -340,6 +340,7 @@ local function create_and_start_client(cmd, cmd_args, handlers, extra_spawn_para
local decoded, err = json_decode(body)
if not decoded then
on_error(client_errors.INVALID_SERVER_JSON, err)
+ return
end
local _ = log.debug() and log.debug("decoded", decoded)