Skip to content

Commit 1246434

Browse files
committed
Readme + changelog for code lenses.
1 parent 47cf51b commit 1246434

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
#### :rocket: New Feature
1616

1717
- Inlay Hints (experimetal). `rescript.settings.inlayHints.enable: true`
18+
- Code Lenses for functions (experimetal). `rescript.settings.codeLens: true`
19+
1820
## v1.4.2
1921

2022
#### :bug: Bug Fix

README.md

+9
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,15 @@ rescript.settings.inlayHints.enable: true
117117
rescript.settings.inlayHints.maxLength: 25
118118
```
119119

120+
### Code Lens (experimental)
121+
122+
This tells the editor to add code lenses to function definitions, showing its full type as an annotation above the definition.
123+
124+
```jsonc
125+
// Enable (experimental) code lens.
126+
rescript.settings.codeLens: true
127+
```
128+
120129
### Hide generated files
121130

122131
You can configure VSCode to collapse the JavaScript files ReScript generates under its source ReScript file. This will "hide" the generated files in the VSCode file explorer, but still leaving them accessible by expanding the source ReScript file they belong to.

0 commit comments

Comments
 (0)