Making use of another extension in vscode gives the ability to use single level regions in ARM templates Region Folder as long as you add the following to your settings file
"maptz.regionfolder": {
"[arm-template]": { //Language selector
"foldEnd": "*/* #endregion */",
"foldEndRegex": "[\\s]/\\*[\\s]*#endregion",
"foldStart": "*/* #region [NAME] */",
"foldStartRegex": "^[\\s]*/\\*[\\s]*#region[\\s]*(.*)[\\s]*\\*/[\\s]*$",
"disableFolding": false //Turn off #region folding for this language
}
}
Ideally though ARM Template Language should support natively the ability to have region support and should support multiple levels of regions as opposed to a single level
@kilasuit Ideally how would you like built-in folding to behave? The extension mentioned above seems to disable the built-in JSON region folding that we currently support, is that intended?
Making use of another extension in vscode gives the ability to use single level regions in ARM templates Region Folder as long as you add the following to your settings file
Ideally though ARM Template Language should support natively the ability to have region support and should support multiple levels of regions as opposed to a single level