docs(lsp): mention ctx.version

Since 643546b82b the request handler
context (`ctx`) includes a `version` field.
This commit is contained in:
Justin M. Keyes 2023-06-21 11:40:03 +02:00
parent 21b074feb0
commit 59048814fd

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.