mirror of
https://github.com/neovim/neovim.git
synced 2025-11-14 22:39:08 +00:00
refactor(lsp): move util.enable to capability.enable
This commit is contained in:
@@ -209,8 +209,7 @@ local all_clients = {}
|
||||
--- See [vim.lsp.ClientConfig].
|
||||
--- @field workspace_folders lsp.WorkspaceFolder[]?
|
||||
---
|
||||
--- Whether linked editing ranges are enabled for this client.
|
||||
--- @field _linked_editing_enabled boolean?
|
||||
--- @field _enabled_capabilities table<vim.lsp.capability.Name, boolean?>
|
||||
---
|
||||
--- Track this so that we can escalate automatically if we've already tried a
|
||||
--- graceful shutdown
|
||||
@@ -436,6 +435,9 @@ function Client.create(config)
|
||||
end,
|
||||
}
|
||||
|
||||
---@type table <vim.lsp.capability.Name, boolean?>
|
||||
self._enabled_capabilities = {}
|
||||
|
||||
--- @type table<string|integer, string> title of unfinished progress sequences by token
|
||||
self.progress.pending = {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user