You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+34-6Lines changed: 34 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,14 +2,42 @@
2
2
3
3
A LSP server for [source](https://github.com/source-academy/js-slang)
4
4
5
-
#Setup
5
+
## Use
6
6
7
-
First run these commands:
7
+
The code for the lsp is in `/server` but code for testing the lsp is provided in `/client`. If you want to use this lsp in your own VSCode extension, download the
8
+
latest version from the [releases](https://github.com/mug1wara26/source-lsp/releases) page, and copy the set up in `client/src/extension.ts`.
9
+
Ensure that the lines
10
+
11
+
```
12
+
const serverModule = context.asAbsolutePath(
13
+
path.join("dist", 'source-lsp.js')
14
+
);
15
+
```
16
+
17
+
point to the correct path to the downloaded lsp file.
18
+
19
+
If you want to test out the lsp, you can clone the repo and open up VSCode
0 commit comments