fix(lsp): re-add client.commands and mark private

This commit is contained in:
Lewis Russell 2024-02-12 10:18:42 +00:00 committed by Christian Clason
parent 6c168c0f4d
commit 597ecf7516

View File

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