Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,12 @@ export async function activate(context: ExtensionContext): Promise<XMLExtensionA

registerClientOnlyCommands(context);

languages.setLanguageConfiguration('xml', getIndentationRules());
languages.setLanguageConfiguration('xsl', getIndentationRules());
// Update indentation rules for all language which are XML.
XML_SUPPORTED_LANGUAGE_IDS.forEach(l => {
const languageId = <string> 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);

Expand Down