From 188b64a4676e476321f115673f0d2bb77c1cd7e1 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Mon, 15 Feb 2021 11:46:34 +0100 Subject: [README] reflect didChange implementation --- README.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index fab3621..f9e49d2 100644 --- a/README.md +++ b/README.md @@ -15,12 +15,11 @@ vis-lspc currently supports: Everything else. -Especially `textDocument/didChange` must be implemented before vis-lspc is somewhat usable. -To my knowledge the is currently no good way to detect file changes vis the Lua API. +To my knowledge there is currently no good way to detect file changes via the Lua API. But this is essential to support [Text Synchronization](https://microsoft.github.io/language-server-protocol/specifications/specification-current/#textSynchronization) which is required by the LSP protocol. -A dirty workaround could be to send the whole file content in a `textDocument/didChange` +A dirty workaround we currently use is to send the whole file content in a `textDocument/didChange` method call before calling any other method. If someone can come up with an idea how to solve this I would appreciate contributions. -- cgit v1.2.3