diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2023-06-21 11:40:03 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2023-06-21 12:32:54 +0200 |
commit | 59048814fdad7a8769374f03c0137a8b8a2f5539 (patch) | |
tree | 13eac3efb1a91642da13338b2aaed6e0d42a153d | |
parent | 21b074feb09b7f2e4807a816be6fd0687f23c564 (diff) | |
download | rneovim-59048814fdad7a8769374f03c0137a8b8a2f5539.tar.gz rneovim-59048814fdad7a8769374f03c0137a8b8a2f5539.tar.bz2 rneovim-59048814fdad7a8769374f03c0137a8b8a2f5539.zip |
docs(lsp): mention ctx.version
Since 643546b82b4bc0c29ca869f81af868a019723d83 the request handler
context (`ctx`) includes a `version` field.
-rw-r--r-- | runtime/doc/lsp.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/runtime/doc/lsp.txt b/runtime/doc/lsp.txt index 3732ddf2bd..2a781119cf 100644 --- a/runtime/doc/lsp.txt +++ b/runtime/doc/lsp.txt @@ -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. |