Skip to content

Commit c2aefff

Browse files
committed
fix xpath variables setting command
1 parent 9164d6c commit c2aefff

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/extension.ts

+1
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,7 @@ export function activate(context: vscode.ExtensionContext) {
179179
context.subscriptions.push(vscode.languages.registerDocumentLinkProvider({ language: 'sch' }, schLinkProvider));
180180
context.subscriptions.push(vscode.languages.registerHoverProvider({ language: 'xslt' }, new XSLTHoverProvider()));
181181
context.subscriptions.push(vscode.languages.registerHoverProvider({ language: 'xpath' }, new XSLTHoverProvider()));
182+
context.subscriptions.push(vscode.commands.registerCommand('xslt-xpath.setVariableNames', (...args) => XPathSemanticTokensProvider.setVariableNames(args[0])));
182183
context.subscriptions.push(vscode.commands.registerCommand('xslt-xpath.formatUnchecked', () => formatUnchecked()));
183184
context.subscriptions.push(vscode.commands.registerCommand('xslt-xpath.gotoXPath', () => showGotoXPathInputBox()));
184185
context.subscriptions.push(vscode.commands.registerCommand('xslt-xpath.selectCurrentElement', () => XsltSymbolProvider.selectXMLElement(SelectionType.Current)));

0 commit comments

Comments
 (0)