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
{{ message }}
This repository was archived by the owner on Apr 24, 2021. It is now read-only.
Copy file name to clipboardExpand all lines: Readme.md
+10-17
Original file line number
Diff line number
Diff line change
@@ -1,38 +1,31 @@
1
-
2
1
# Rescript Editor Support
3
2
4
3
This is a private command line binary used by [rescript-vscode](https://github.com/rescript-lang/rescript-vscode) to power a few functionalities such as jump to definition, hover and autocomplete.
5
4
6
5
The binary reads the `.cmt` and `.cmti` files and analyses them.
7
6
8
-
## Status
7
+
## Install
9
8
10
-
This is a preliminary version for early testing, the CLI is not stable yet.
9
+
```
10
+
opam switch 4.06.1
11
+
opam opam install . --deps-only
12
+
```
11
13
12
14
## Build
13
15
14
16
```
15
17
dune build
16
18
```
17
19
18
-
## Usage
19
-
20
-
### dump
21
-
22
-
Compute jump-to-definition and hover information for `Foo.res` at line `0` and column `4`:
20
+
The built artifact is in `_build/install/default/bin/rescript-editor-support.exe`
23
21
24
-
```
25
-
rescript-editor-support.exe dump src/Foo.res:0:4
26
-
```
27
-
28
-
### complete
22
+
## Usage
29
23
30
-
Compute autocomplete for `Foo.res` at line `0` and column `4`, where `Foo.res` is being edited and its current content in the editor is in file `Current.res`.
0 commit comments