mirror of
https://github.com/Microsoft/vscode
synced 2024-08-26 20:39:37 +00:00
[fsharp] add folding region markers and snippets
This commit is contained in:
parent
595010f896
commit
ab4cc0d187
|
@ -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"
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue