Skip to content

Commit 5c4d5c7

Browse files
Add Help link to .NET SDK install prompt (#3508)
This adds a Help link to the .NET SDK install prompt to help users troubleshoot problems with locating `dotnet`.
1 parent e4e631a commit 5c4d5c7

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/coreclr-debug/activate.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,16 +85,19 @@ function showDotnetToolsWarning(message: string): void {
8585
if (!config.get('suppressDotnetInstallWarning', false)) {
8686
const getDotNetMessage = 'Get the .NET Core SDK';
8787
const goToSettingsMessage = 'Disable this message in user settings';
88+
const helpMessage = 'Help';
8889
// Buttons are shown in right-to-left order, with a close button to the right of everything;
8990
// getDotNetMessage will be the first button, then goToSettingsMessage, then the close button.
9091
vscode.window.showErrorMessage(message,
91-
goToSettingsMessage, getDotNetMessage).then(value => {
92+
goToSettingsMessage, getDotNetMessage, helpMessage).then(value => {
9293
if (value === getDotNetMessage) {
9394
let dotnetcoreURL = 'https://dot.net/core-sdk-vscode';
94-
9595
vscode.env.openExternal(vscode.Uri.parse(dotnetcoreURL));
9696
} else if (value === goToSettingsMessage) {
9797
vscode.commands.executeCommand('workbench.action.openGlobalSettings');
98+
} else if (value == helpMessage) {
99+
let helpURL = 'https://aka.ms/VSCode-CS-DotnetNotFoundHelp';
100+
vscode.env.openExternal(vscode.Uri.parse(helpURL));
98101
}
99102
});
100103
}

0 commit comments

Comments
 (0)