We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 65b772e commit a179451Copy full SHA for a179451
1 file changed
src/extension.ts
@@ -36,8 +36,12 @@ export async function activate(context: ExtensionContext): Promise<XMLExtensionA
36
37
registerClientOnlyCommands(context);
38
39
- languages.setLanguageConfiguration('xml', getIndentationRules());
40
- languages.setLanguageConfiguration('xsl', getIndentationRules());
+ // Update indentation rules for all language which are XML.
+ XML_SUPPORTED_LANGUAGE_IDS.forEach(l => {
41
+ const languageId = <string> l;
42
+ languages.setLanguageConfiguration(languageId, getIndentationRules());
43
+ });
44
+
45
// Register in the context 'xml.supportedLanguageIds' to use it in command when condition in package.json
46
commands.executeCommand('setContext', 'xml.supportedLanguageIds', XML_SUPPORTED_LANGUAGE_IDS);
47
0 commit comments