Skip to content

Commit

Permalink
Adding instructions on how to start a local server to interact with t…
Browse files Browse the repository at this point in the history
…he LSP
  • Loading branch information
Stevendeo committed Mar 1, 2024
1 parent 950de76 commit 5b6917d
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions REMOTE_TEST.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
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:
```
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
```

and call it with `test.nc`.

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.

0 comments on commit 5b6917d

Please sign in to comment.