Merge #24086 LSP ctx.version, report full Nvim version

This commit is contained in:
Justin M. Keyes 2023-06-21 03:36:39 -07:00 committed by GitHub
commit e27377e33e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View File

@ -238,6 +238,11 @@ For |lsp-response|, each |lsp-handler| has this signature: >
The parameters used in the original
request which resulted in this handler
call.
{version} (number) Document version at time of
request. Handlers can compare this to the
current document version to check if the
response is "stale".
See also |b:changedtick|.
{config} (table)
Configuration for the handler.

View File

@ -1345,7 +1345,6 @@ function lsp.start_client(config)
messages = 'messages',
verbose = 'verbose',
}
local version = vim.version()
local workspace_folders --- @type table[]?
local root_uri --- @type string?
@ -1379,7 +1378,7 @@ function lsp.start_client(config)
-- since 3.15.0
clientInfo = {
name = 'Neovim',
version = string.format('%s.%s.%s', version.major, version.minor, version.patch),
version = tostring(vim.version()),
},
-- The rootPath of the workspace. Is null if no folder is open.
--