From 96a51fa4bccc0f15881403a4fbad7409fe95aab4 Mon Sep 17 00:00:00 2001 From: azerr Date: Sun, 22 Jan 2023 11:29:44 +0100 Subject: [PATCH] Support identation for XML contributed languages Signed-off-by: azerr --- src/extension.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/extension.ts b/src/extension.ts index ba8d2009..7418ec26 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -36,8 +36,12 @@ export async function activate(context: ExtensionContext): Promise { + const languageId = l; + languages.setLanguageConfiguration(languageId, getIndentationRules()); + }); + // Register in the context 'xml.supportedLanguageIds' to use it in command when condition in package.json commands.executeCommand('setContext', 'xml.supportedLanguageIds', XML_SUPPORTED_LANGUAGE_IDS);