mirror of
https://github.com/neovim/neovim.git
synced 2025-12-15 19:05:40 +00:00
lsp: fix fallback for callback in method_unsupported
Missed this #12764. My bad :((
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user