mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-01 12:42:59 -05:00
[fsharp] add folding region markers and snippets
This commit is contained in:
@@ -22,6 +22,10 @@
|
||||
["'", "'"]
|
||||
],
|
||||
"folding": {
|
||||
"offSide": true
|
||||
"offSide": true,
|
||||
"markers": {
|
||||
"start": "^\\s*//#region",
|
||||
"end": "^\\s*//#endregion"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,6 +17,10 @@
|
||||
"language": "fsharp",
|
||||
"scopeName": "source.fsharp",
|
||||
"path": "./syntaxes/fsharp.json"
|
||||
}],
|
||||
"snippets": [{
|
||||
"language": "fsharp",
|
||||
"path": "./snippets/fsharp.json"
|
||||
}]
|
||||
}
|
||||
}
|
||||
|
||||
16
extensions/fsharp/snippets/fsharp.json
Normal file
16
extensions/fsharp/snippets/fsharp.json
Normal file
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"Region Start": {
|
||||
"prefix": "#region",
|
||||
"body": [
|
||||
"//#region $0"
|
||||
],
|
||||
"description": "Folding Region Start"
|
||||
},
|
||||
"Region End": {
|
||||
"prefix": "#endregion",
|
||||
"body": [
|
||||
"//#endregion"
|
||||
],
|
||||
"description": "Folding Region End"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user