We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f6372c commit f2dd24bCopy full SHA for f2dd24b
src/hacks.ts
@@ -6,8 +6,8 @@ import * as monaco from 'monaco-editor'
6
// custom block content
7
// }
8
*/
9
-const CUSTOM_BLOCK_BEGIN_REGEX = '^\\s*(?:\\/\\/|#).*\\{'
10
-const CUSTOM_BLOCK_END_REGEX = '^\\s*(?:\\/\\/|#).*\\}'
+const CUSTOM_BLOCK_BEGIN_REGEX = '^\\s*(?:\\/\\/|#).*(?:\\{|#region)'
+const CUSTOM_BLOCK_END_REGEX = '^\\s*(?:\\/\\/|#).*(?:\\}|#endregion)'
11
export function addCustomFoldingMarkers (configuration: monaco.extra.ILanguageConfiguration): monaco.extra.ILanguageConfiguration {
12
const markers = configuration.folding?.markers
13
return {
0 commit comments