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: CONTRIBUTING.md
+43
Original file line number
Diff line number
Diff line change
@@ -2,10 +2,53 @@
2
2
3
3
Thanks for your interest. Below is an informal spec of how the plugin's server communicates with the actual compiler. If you're a ReScript editor plugin implementor, you should probably read this to understand the various important nuances.
4
4
5
+
## Other Editors With Language-Server Support
6
+
7
+
This repo happens to also contain a language-server usable by other editors. If you'd like to use this language-server with e.g. Atom, for now, you have to clone the repo and run `npm run compile`. The language server will be at `server/out/server.js`. Wire that into your editor.
8
+
9
+
10
+
## Repo Structure
11
+
12
+
```
13
+
.
14
+
├── client // Language Client
15
+
│ ├── src
16
+
│ │ └── extension.ts // Language Client entry point
17
+
├── package.json // The extension manifest.
18
+
└── server // Language Server
19
+
└── src
20
+
└── server.ts // Language Server entry point
21
+
```
22
+
23
+
## Run the Project
24
+
25
+
- Run `npm install` at the root. This will also install the necessary npm modules in both the `client` and `server` folders.
26
+
- Open VS Code to this folder.
27
+
- Switch to the Debug viewlet (command palette -> View: Show Run and Debug).
28
+
- Select `Client + Server` from the drop down, launch it (green arrow):
Copy file name to clipboardexpand all lines: README.md
+2-43
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ The official VSCode plugin for ReScript.
4
4
5
5
## Prerequisite
6
6
7
-
`bs-platform 8.3.3` installed locally in your project.
7
+
You **must** have `bs-platform 8.3.3` installed locally in your project, through the usual [npm installation](https://rescript-lang.org/docs/manual/latest/installation#integrate-into-existing-js-project). Older versions are not guaranteed to work.
8
8
9
9
## Installation
10
10
@@ -24,47 +24,6 @@ The plugin activates on `.res` and `.resi` files. If you've already got Reason-L
24
24
- Jump to location
25
25
26
26
### Upcoming Features
27
+
27
28
- Formatting of temporary files
28
29
- Formatting of files outside of a ReScript project root
29
-
30
-
## Develop
31
-
32
-
### Other Editors With Language-Server Support
33
-
This repo happens to also contain a language-server usable by other editors. If you'd like to use this language-server with e.g. Atom, for now, you have to clone the repo and run `npm run compile`. The language server will be at `server/out/server.js`. Wire that into your editor.
34
-
35
-
### Structure
36
-
37
-
```
38
-
.
39
-
├── client // Language Client
40
-
│ ├── src
41
-
│ │ └── extension.ts // Language Client entry point
42
-
├── package.json // The extension manifest.
43
-
└── server // Language Server
44
-
└── src
45
-
└── server.ts // Language Server entry point
46
-
```
47
-
48
-
### Running the Project
49
-
50
-
- Run `npm install` at the root. This will also install the necessary npm modules in both the `client` and `server` folders.
51
-
- Open VS Code to this folder.
52
-
- Switch to the Debug viewlet (command palette -> View: Show Run and Debug).
53
-
- Select `Client + Server` from the drop down, launch it (green arrow):
0 commit comments