-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
125 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
.. 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: | ||
``` | ||
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...or/vscode-ocaml-platform/src-bindings/vscode_languageclient/vscode_languageclient_stub.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
joo_global_object.vscode_languageclient = require("vscode-languageclient"); | ||
joo_global_object.webSocket = require("ws"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters