Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allowing remote LSP connection in vscode API #102

Merged
merged 15 commits into from
Sep 6, 2024
24 changes: 3 additions & 21 deletions sphinx/remote-lsp.rst
Original file line number Diff line number Diff line change
@@ -1,25 +1,7 @@
.. remote-lsp

You can simulate a remote LSP with the following scripts:

Start a server on any port (here I chose 8000):
`$ nc -k -l localhost 8000 > test.nc`

Then, use the following script to read on a file:
You can simulate a remote LSP with the following script:
```
touch $1
inotifywait -m -e modify $1 | while read line
do
if [ ! -s $1 ]; then
echo 'Waiting for content'
else
cat $1 | superbol lsp > superbol.log
> $1
fi
done
$ mkfifo /tmp/somewhere # possibly in a directory resulting from `mktemp -d`
$ nc -l 8000 < /tmp/somewhere | superbol-free lsp > /tmp/somewhere
```

and call it with `test.nc`.
Stevendeo marked this conversation as resolved.
Show resolved Hide resolved

TODO: this script only receives information, but does not send it back to
VSCODE; it only writes it in superbol.log. It should answer to the client.
Loading