File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -36,8 +36,12 @@ export async function activate(context: ExtensionContext): Promise<XMLExtensionA
36
36
37
37
registerClientOnlyCommands ( context ) ;
38
38
39
- languages . setLanguageConfiguration ( 'xml' , getIndentationRules ( ) ) ;
40
- languages . setLanguageConfiguration ( 'xsl' , getIndentationRules ( ) ) ;
39
+ // Update indentation rules for all language which are XML.
40
+ XML_SUPPORTED_LANGUAGE_IDS . forEach ( l => {
41
+ const languageId = < string > l ;
42
+ languages . setLanguageConfiguration ( languageId , getIndentationRules ( ) ) ;
43
+ } ) ;
44
+
41
45
// Register in the context 'xml.supportedLanguageIds' to use it in command when condition in package.json
42
46
commands . executeCommand ( 'setContext' , 'xml.supportedLanguageIds' , XML_SUPPORTED_LANGUAGE_IDS ) ;
43
47
You can’t perform that action at this time.
0 commit comments