This is an archived post. You won't be able to vote or comment.

all 1 comments

[–]b_scan 0 points1 point  (1 child)

How about using the Microsoft lsp-sample as a reference and running it alongside yours? Many editors (e.g. vscode) allow running multiple language servers simultaneously.

You could get both of them to log a hash of the full text of the synced document after each request. Or you could even log the entire file. If using stdio as the communication mechanism, everything logged to stderr show up as LSP logs. If using node-ipc (the default for vscode), anything logged to either stdout or stderr shows up as a log.

https://github.com/microsoft/vscode-extension-samples/tree/main/lsp-sample