Restore 'follow link' text on tsconfig links

For #141112
This commit is contained in:
Matt Bierner 2022-02-24 14:02:38 -08:00
parent 2363668892
commit 2a72cf7070
No known key found for this signature in database
GPG key ID: 099C331567E11888

View file

@ -58,10 +58,12 @@ class TsconfigLinkProvider implements vscode.DocumentLinkProvider {
resourceUri: document.uri,
extendsValue: extendsValue
};
return new vscode.DocumentLink(
const link = new vscode.DocumentLink(
this.getRange(document, extendsNode),
vscode.Uri.parse(`command:${openExtendsLinkCommandId}?${JSON.stringify(args)}`)
);
vscode.Uri.parse(`command:${openExtendsLinkCommandId}?${JSON.stringify(args)}`));
link.tooltip = localize('documentLink.tooltip', 'Follow link');
return link;
}
private getFilesLinks(document: vscode.TextDocument, root: jsonc.Node) {