Skip to content
This repository has been archived by the owner on Sep 24, 2021. It is now read-only.

Commit

Permalink
Handle "open workspace settings" properly microsoft#1374
Browse files Browse the repository at this point in the history
  • Loading branch information
JanKoehnlein committed Nov 27, 2017
1 parent 301d444 commit a6e6005
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/goInstallTools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,10 +181,10 @@ function installTools(goVersion: SemVersion, missing?: string[]) {
if (toolsGopath) {
envForTools['GOPATH'] = toolsGopath;
} else {
vscode.window.showInformationMessage('Cannot install Go tools. Set either go.gopath or go.toolsGopath in settings.', 'Open User settings', 'Open Workspace Settings').then(selected => {
if (selected === 'Open User settings') {
vscode.window.showInformationMessage('Cannot install Go tools. Set either go.gopath or go.toolsGopath in settings.', 'Open User Settings', 'Open Workspace Settings').then(selected => {
if (selected === 'Open User Settings') {
vscode.commands.executeCommand('workbench.action.openGlobalSettings');
} else if (selected === 'Open User settings') {
} else if (selected === 'Open Workspace Settings') {
vscode.commands.executeCommand('workbench.action.openWorkspaceSettings');
}
});
Expand Down

0 comments on commit a6e6005

Please sign in to comment.