Add folding configuration

This commit is contained in:
Alex Dima 2018-03-14 11:54:33 +01:00
parent 6d29cf6810
commit 98b335974d

View file

@ -121,7 +121,12 @@ const richEditConfiguration:monaco.languages.LanguageConfiguration = {
{ open: '\'', close: '\'', notIn: ['string', 'comment'] },
{ open: '`', close: '`', notIn: ['string', 'comment'] },
{ open: "/**", close: " */", notIn: ["string"] }
]
],
folding: {
markers: {
start: new RegExp("^\\s*//\\s*#?region\\b"),
end: new RegExp("^\\s*//\\s*#?endregion\\b")
}
}
};