diff --git a/packages/svelte-vscode/language-configuration.json b/packages/svelte-vscode/language-configuration.json index 0199662d8..b6b3dd566 100644 --- a/packages/svelte-vscode/language-configuration.json +++ b/packages/svelte-vscode/language-configuration.json @@ -25,5 +25,11 @@ { "open": "[", "close": "]" }, { "open": "(", "close": ")" }, { "open": "<", "close": ">" } - ] + ], + "folding": { + "markers": { + "start": "^\\s*//\\s*#?region\\b|^<(template|style|script)[^>]*>", + "end": "^\\s*//\\s*#?endregion\\b|^" + } + } }