Skip to content

Commit 1cd7b81

Browse files
committed
Custom folding
Fixes #69
1 parent a825fc2 commit 1cd7b81

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
- Properly highlight nested comments.
44
- Fix Windows diagnostics!
5+
- Custom folding. See README
56

67
## 1.0.4
78

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ The plugin activates on `.res` and `.resi` files. If you've already got Reason-L
4545
- Snippets to ease a few syntaxes:
4646
- `external` features such as `@bs.module` and `@bs.val`
4747
- `try`, `for`, etc.
48+
- Folding, and [custom folding](https://code.visualstudio.com/docs/editor/codebasics#_folding) through `//#region` and `//#endregion`.
4849

4950
### Upcoming Features
5051

rescript.configuration.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@
6565
]
6666
],
6767
"folding": {
68-
"offSide": true
68+
"markers": {
69+
"start": "^\\s*//\\s*#?region\\b",
70+
"end": "^\\s*//\\s*#?endregion\\b"
71+
}
6972
}
7073
}

0 commit comments

Comments
 (0)