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
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,19 +10,20 @@
10
10
11
11
## Contents
12
12
13
+
-[Contents](#contents)
13
14
-[📝 Prerequisite](#-prerequisite)
14
15
-[🌈 Supported Themes](#-supported-themes)
15
16
-[💡 Features](#-features)
16
17
-[📥 Installation](#-installation)
18
+
-[Pre-release channel](#pre-release-channel)
17
19
-[📦 Commands](#-commands)
18
20
-[🔨 Settings](#-settings)
19
21
-[🚀 Code Analyzer](#-code-analyzer)
20
22
-[Configuring the Code Analyzer](#configuring-the-code-analyzer)
21
23
-[Usage](#usage)
22
24
-[Caveats](#caveats)
23
-
-[🪄 Tips & Tricks](#-tips--tricks)
25
+
-[🪄 Tips \& Tricks](#-tips--tricks)
24
26
-[Hide generated files](#hide-generated-files)
25
-
-[⌨️ Use with Other Editors](#️-use-with-other-editors)
26
27
-[📰 Changelog](#-changelog)
27
28
-[👏 How to Contribute](#-how-to-contribute)
28
29
-[📄 License](#-license)
@@ -102,6 +103,7 @@ You'll find all ReScript specific settings under the scope `rescript.settings`.
102
103
| Prompt to Start Build | If there's no ReScript build running already in the opened project, the extension will prompt you and ask if you want to start a build automatically. You can turn off this automatic prompt via the setting `rescript.settings.askToStartBuild`. |
103
104
| ReScript Binary Path | The extension will look for the existence of a `node_modules/.bin/rescript` file and use its directory as the `binaryPath`. If it does not find it at the project root (which is where the nearest `rescript.json` resides), it goes up folders in the filesystem recursively until it either finds it (often the case in monorepos) or hits the top level. To override this lookup process, the path can be configured explicitly using the setting `rescript.settings.binaryPath`|
104
105
| ReScript Platform Path | The extension will look for the existence of a `node_modules/rescript` directory and use the subdirectory corresponding to the current platform as the `platformPath`. If it does not find it at the project root (which is where the nearest `rescript.json` resides), it goes up folders in the filesystem recursively until it either finds it (often the case in monorepos) or hits the top level. To override this lookup process, the path can be configured explicitly using the setting `rescript.settings.platformPath`|
106
+
| ReScript Runtime Path | The extension will look for the existence of a `node_modules/@rescript/runtime` directory (ReScript v12 beta 11+). To override this lookup process, the path can be configured explicitly using the setting `rescript.settings.runtimePath`. |
105
107
| Inlay Hints (experimental) | This allows an editor to place annotations inline with text to display type hints. Enable using `rescript.settings.inlayHints.enable: true`|
106
108
| Code Lens (experimental) | This tells the editor to add code lenses to function definitions, showing its full type above the definition. Enable using `rescript.settings.codeLens: true`|
107
109
| Signature Help | This tells the editor to show signature help when you're writing function calls. Enable using `rescript.settings.signatureHelp.enabled: true`|
Copy file name to clipboardExpand all lines: package.json
+10-1Lines changed: 10 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -207,6 +207,14 @@
207
207
"default": null,
208
208
"description": "Path to the directory where platform-specific ReScript binaries are. You can use it if you haven't or don't want to use the installed ReScript from node_modules in your project."
209
209
},
210
+
"rescript.settings.runtimePath": {
211
+
"type": [
212
+
"string",
213
+
"null"
214
+
],
215
+
"default": null,
216
+
"description": "Optional path to the directory containing the @rescript/runtime package. Set this if your tooling is unable to automatically locate the package in your project."
0 commit comments