This repository was archived by the owner on Apr 24, 2021. It is now read-only.
File tree 1 file changed +15
-7
lines changed
1 file changed +15
-7
lines changed Original file line number Diff line number Diff line change @@ -20,18 +20,26 @@ let hasOpts opts names = names |> List.exists (opts |> hasOpt)
20
20
21
21
let help =
22
22
{|
23
- Commands for Rescript Language Server
23
+ ** Private CLI For rescript - vscode usage only **
24
24
25
- - dump: compute definition and hover for Foo. res at line 0 and column 4 :
25
+ Examples :
26
+ rescript- editor- support.exe dump src/ MyFile. res src/ MyFile2. res
27
+ rescript- editor- support.exe complete src/ MyFile. res 0 4 currentContent.res
28
+ rescript- editor- support.exe hover src/ MyFile. res 10 2
26
29
27
- rescript -editor -support .exe dump src /Foo. res :0 :4
30
+ Options :
31
+ dump : debugging . definition and hover for Foo .res and Foo2 .res :
28
32
29
- -complete : compute autocomplete for Foo. res at line 0 and column 4 ,
30
- where Foo. res is being edited and the editor content is in file current .res .
33
+ rescript - editor- support.exe dump src / Foo .res src / Foo2 .res
31
34
32
- rescript -editor -support .exe complete src /Foo. res 0 4 current .res
35
+ complete : compute autocomplete for Foo .res at line 0 and column 4 ,
36
+ where Foo .res is being edited and the editor content is in file current .res.
33
37
34
- The dump command can also omit `:line :column `, to show results for every position in the file . Several files can be specified on the command line .
38
+ rescript - editor- support.exe complete src / Foo .res 0 4 current .res
39
+
40
+ hover : get inferred type for Foo .res at line 10 column 2 :
41
+
42
+ rescript - editor- support.exe hover src / Foo .res 10 2
35
43
|}
36
44
37
45
let showHelp () = prerr_endline help
You can’t perform that action at this time.
0 commit comments