mirror of
https://github.com/neovim/neovim.git
synced 2025-09-07 11:58:17 +00:00
fix(lsp): re-add client.commands and mark private
This commit is contained in:

committed by
Christian Clason

parent
6c168c0f4d
commit
597ecf7516
@@ -79,6 +79,7 @@ local validate = vim.validate
|
|||||||
--- Track this so that we can escalate automatically if we've already tried a
|
--- Track this so that we can escalate automatically if we've already tried a
|
||||||
--- graceful shutdown
|
--- graceful shutdown
|
||||||
--- @field private _graceful_shutdown_failed true?
|
--- @field private _graceful_shutdown_failed true?
|
||||||
|
--- @field private commands table
|
||||||
---
|
---
|
||||||
--- @field dynamic_capabilities lsp.DynamicCapabilities
|
--- @field dynamic_capabilities lsp.DynamicCapabilities
|
||||||
---
|
---
|
||||||
@@ -270,6 +271,7 @@ function Client.start(config)
|
|||||||
attached_buffers = {},
|
attached_buffers = {},
|
||||||
server_capabilities = {},
|
server_capabilities = {},
|
||||||
dynamic_capabilities = vim.lsp._dynamic.new(id),
|
dynamic_capabilities = vim.lsp._dynamic.new(id),
|
||||||
|
commands = config.commands, -- Remove in Nvim 0.11
|
||||||
|
|
||||||
--- Contains $/progress report messages.
|
--- Contains $/progress report messages.
|
||||||
--- They have the format {token: integer|string, value: any}
|
--- They have the format {token: integer|string, value: any}
|
||||||
|
Reference in New Issue
Block a user