Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add help link to .NET SDK install prompt #3508

Merged
merged 1 commit into from
Jan 15, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions src/coreclr-debug/activate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
});
}
Expand Down