mirror of
https://github.com/neovim/neovim.git
synced 2026-03-28 03:12:00 +00:00
fix(lsp): stop and close timer when Capability is destroyed
This commit is contained in:
@@ -63,6 +63,13 @@ function Provider:new(bufnr)
|
||||
return self
|
||||
end
|
||||
|
||||
---@package
|
||||
function Provider:destroy()
|
||||
self:reset_timer()
|
||||
api.nvim_del_augroup_by_id(self.augroup)
|
||||
self.active[self.bufnr] = nil
|
||||
end
|
||||
|
||||
---@package
|
||||
---@param client_id integer
|
||||
function Provider:on_attach(client_id)
|
||||
|
||||
Reference in New Issue
Block a user