Skip to content

Commit ab4cc0d

Browse files
committed
[fsharp] add folding region markers and snippets
1 parent 595010f commit ab4cc0d

3 files changed

Lines changed: 25 additions & 1 deletion

File tree

extensions/fsharp/language-configuration.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@
2222
["'", "'"]
2323
],
2424
"folding": {
25-
"offSide": true
25+
"offSide": true,
26+
"markers": {
27+
"start": "^\\s*//#region",
28+
"end": "^\\s*//#endregion"
29+
}
2630
}
2731
}

extensions/fsharp/package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@
1717
"language": "fsharp",
1818
"scopeName": "source.fsharp",
1919
"path": "./syntaxes/fsharp.json"
20+
}],
21+
"snippets": [{
22+
"language": "fsharp",
23+
"path": "./snippets/fsharp.json"
2024
}]
2125
}
2226
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"Region Start": {
3+
"prefix": "#region",
4+
"body": [
5+
"//#region $0"
6+
],
7+
"description": "Folding Region Start"
8+
},
9+
"Region End": {
10+
"prefix": "#endregion",
11+
"body": [
12+
"//#endregion"
13+
],
14+
"description": "Folding Region End"
15+
}
16+
}

0 commit comments

Comments
 (0)