neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit 59048814fdad7a8769374f03c0137a8b8a2f5539
parent 21b074feb09b7f2e4807a816be6fd0687f23c564
Author: Justin M. Keyes <justinkz@gmail.com>
Date:   Wed, 21 Jun 2023 11:40:03 +0200

docs(lsp): mention ctx.version

Since 643546b82b4bc0c29ca869f81af868a019723d83 the request handler
context (`ctx`) includes a `version` field.

Diffstat:
Mruntime/doc/lsp.txt | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git 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.