mirror of
https://github.com/neovim/neovim.git
synced 2025-09-10 21:38:19 +00:00
fix(lsp): check if buffer was detached in on_init callback (#28942)
Co-authored-by: Jongwook Choi <wookayin@gmail.com>
(cherry picked from commit af200c10cf
)
Co-authored-by: Ilia Choly <ilia.choly@gmail.com>
This commit is contained in:
![41898282+github-actions[bot]@users.noreply.github.com](/assets/img/avatar_default.png)
committed by
GitHub

parent
10a16c1311
commit
bdd5871dc5
@@ -39,8 +39,7 @@ M.create_server_definition = [[
|
||||
})
|
||||
local handler = handlers[method]
|
||||
if handler then
|
||||
local response, err = handler(method, params)
|
||||
callback(err, response)
|
||||
handler(method, params, callback)
|
||||
elseif method == 'initialize' then
|
||||
callback(nil, {
|
||||
capabilities = opts.capabilities or {}
|
||||
|
Reference in New Issue
Block a user