lsp: fix fallback for callback in method_unsupported

Missed this #12764. My bad :((
This commit is contained in:
francisco souza
2020-10-25 08:17:34 -04:00
parent 6312792d8a
commit 1f0f92f8ec
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