Skip to content

Commit 2a72cf7

Browse files
committed
Restore 'follow link' text on tsconfig links
For microsoft#141112
1 parent 2363668 commit 2a72cf7

File tree

1 file changed

+5
-3
lines changed
  • extensions/typescript-language-features/src/languageFeatures

1 file changed

+5
-3
lines changed

extensions/typescript-language-features/src/languageFeatures/tsconfig.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,12 @@ class TsconfigLinkProvider implements vscode.DocumentLinkProvider {
5858
resourceUri: document.uri,
5959
extendsValue: extendsValue
6060
};
61-
return new vscode.DocumentLink(
61+
62+
const link = new vscode.DocumentLink(
6263
this.getRange(document, extendsNode),
63-
vscode.Uri.parse(`command:${openExtendsLinkCommandId}?${JSON.stringify(args)}`)
64-
);
64+
vscode.Uri.parse(`command:${openExtendsLinkCommandId}?${JSON.stringify(args)}`));
65+
link.tooltip = localize('documentLink.tooltip', 'Follow link');
66+
return link;
6567
}
6668

6769
private getFilesLinks(document: vscode.TextDocument, root: jsonc.Node) {

0 commit comments

Comments
 (0)