Skip to content

Commit 609039d

Browse files
committed
IMPORTANT: we shouldn't have to manually enable semantic highlighting as the extension loads
1 parent f36deda commit 609039d

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

src/extension.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ const legend = (function () {
5050
export function activate(context: vscode.ExtensionContext) {
5151
const fileSelector = new FileSelection(context);
5252
DocumentChangeHandler.isWindowsOS = os.platform() === 'win32';
53-
vscode.workspace.getConfiguration('editor.semanticHighlighting', { languageId: 'xslt' }).update('enabled', true, vscode.ConfigurationTarget.Global, true);
5453
const xsltDiagnosticsCollection = vscode.languages.createDiagnosticCollection('xslt');
5554
const xsltSymbolProvider = new XsltSymbolProvider(XSLTConfiguration.configuration, xsltDiagnosticsCollection);
5655

test/input.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<element attribute="value">
3+
4+
<childElement>
5+
</childElement>
6+
7+
8+
9+
</element>

test/test.xsl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@
1010
version="3.0">
1111

1212
<xsl:variable name="test5" as="(function(element()) as xs:string)?" select="function($a as element()) as xs:string {local-name($a)}"/>
13+
<xsl:template match="22" mode="#default">
14+
15+
</xsl:template>
16+
1317

1418

1519
</xsl:stylesheet>

0 commit comments

Comments
 (0)