aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/F.lua
diff options
context:
space:
mode:
authorMathias Fussenegger <f.mathias@zignar.net>2021-05-23 16:56:02 +0200
committerMathias Fussenegger <f.mathias@zignar.net>2021-05-23 17:04:19 +0200
commit5d4717010c1d8065b356516a0e36503bf2b9de3d (patch)
treec27264ba109503990298f020e421c3932594fd20 /runtime/lua/vim/F.lua
parent3fb3b548a6c2f88e1c0c3298589e153f45e199aa (diff)
downloadrneovim-5d4717010c1d8065b356516a0e36503bf2b9de3d.tar.gz
rneovim-5d4717010c1d8065b356516a0e36503bf2b9de3d.tar.bz2
rneovim-5d4717010c1d8065b356516a0e36503bf2b9de3d.zip
lsp: Only mute RequestCancelled or ContentModified, but not other errors
handlers passed to `lsp_buf_request` weren't called if the server responded with an error that looks like this: "decoded", { error = { code = -32601, message = "No delegateCommandHandler for foo" }, id = 5, jsonrpc = "2.0" } An example where that happens is both eclipse.jdt.ls and the haskell-language-server when invoking a command that doesn't exist: :lua vim.lsp.buf_request( 0, 'workspace/executeCommand', { command = 'foo' }, function(err, _, res) print(vim.inspect(err), vim.inspect(res)) end )
Diffstat (limited to 'runtime/lua/vim/F.lua')
0 files changed, 0 insertions, 0 deletions