From 46c7bcf4f7b64f1cb002442416e74b4481afb642 Mon Sep 17 00:00:00 2001 From: Gregg Miskelly Date: Tue, 14 Jan 2020 13:24:35 -0800 Subject: [PATCH] Add Help link to .NET SDK install prompt This adds a Help link to the .NET SDK install prompt to help users troubleshoot problems with locating `dotnet`. --- src/coreclr-debug/activate.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/coreclr-debug/activate.ts b/src/coreclr-debug/activate.ts index 5a4380146..5342ec74c 100644 --- a/src/coreclr-debug/activate.ts +++ b/src/coreclr-debug/activate.ts @@ -85,16 +85,19 @@ function showDotnetToolsWarning(message: string): void { if (!config.get('suppressDotnetInstallWarning', false)) { const getDotNetMessage = 'Get the .NET Core SDK'; const goToSettingsMessage = 'Disable this message in user settings'; + const helpMessage = 'Help'; // Buttons are shown in right-to-left order, with a close button to the right of everything; // getDotNetMessage will be the first button, then goToSettingsMessage, then the close button. vscode.window.showErrorMessage(message, - goToSettingsMessage, getDotNetMessage).then(value => { + goToSettingsMessage, getDotNetMessage, helpMessage).then(value => { if (value === getDotNetMessage) { let dotnetcoreURL = 'https://dot.net/core-sdk-vscode'; - vscode.env.openExternal(vscode.Uri.parse(dotnetcoreURL)); } else if (value === goToSettingsMessage) { vscode.commands.executeCommand('workbench.action.openGlobalSettings'); + } else if (value == helpMessage) { + let helpURL = 'https://aka.ms/VSCode-CS-DotnetNotFoundHelp'; + vscode.env.openExternal(vscode.Uri.parse(helpURL)); } }); }