diff options
author | Rishikesh Vaishnav <rishhvaishnav@gmail.com> | 2021-10-08 11:19:33 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-08 11:19:33 -0700 |
commit | 3f097321955e32b0724e0f0d059ecef3d764aac8 (patch) | |
tree | 94cd9ed952679735ecde9d4021234ca6a55e6a65 /runtime/lua/vim/lsp/rpc.lua | |
parent | 5cbd0fba00ecc07099b6af919fed5f403a0ed1cb (diff) | |
download | rneovim-3f097321955e32b0724e0f0d059ecef3d764aac8.tar.gz rneovim-3f097321955e32b0724e0f0d059ecef3d764aac8.tar.bz2 rneovim-3f097321955e32b0724e0f0d059ecef3d764aac8.zip |
fix(lsp): expose ContentModified error code to callbacks (#15262)
Diffstat (limited to 'runtime/lua/vim/lsp/rpc.lua')
-rw-r--r-- | runtime/lua/vim/lsp/rpc.lua | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/runtime/lua/vim/lsp/rpc.lua b/runtime/lua/vim/lsp/rpc.lua index b1bdb24def..d9a684a738 100644 --- a/runtime/lua/vim/lsp/rpc.lua +++ b/runtime/lua/vim/lsp/rpc.lua @@ -466,15 +466,12 @@ local function start(cmd, cmd_args, dispatchers, extra_spawn_params) -- We sent a number, so we expect a number. local result_id = tonumber(decoded.id) - -- Do not surface RequestCancelled or ContentModified to users, it is RPC-internal. + -- Do not surface RequestCancelled to users, it is RPC-internal. if decoded.error then local mute_error = false if decoded.error.code == protocol.ErrorCodes.RequestCancelled then local _ = log.debug() and log.debug("Received cancellation ack", decoded) mute_error = true - elseif decoded.error.code == protocol.ErrorCodes.ContentModified then - local _ = log.debug() and log.debug("Received content modified ack", decoded) - mute_error = true end if mute_error then |