Merge pull request #13154 from fsouza/fix-callback-logic

[RDY] lsp: fix fallback for callback in method_unsupported
This commit is contained in:
Matthieu Coudron
2020-10-25 22:09:41 +01:00
committed by GitHub
2 changed files with 7 additions and 1 deletions

View File

@@ -1029,7 +1029,7 @@ function lsp.buf_request(bufnr, method, params, callback)
-- error message.
if not method_supported then
local unsupported_err = lsp._unsupported_method(method)
local cb = callback or lsp.callbacks['method']
local cb = callback or lsp.callbacks[method]
if cb then
cb(unsupported_err, method, bufnr)
end