Skip to content

Commit c4408eb

Browse files
committed
Do not show message to reload VS Code when selecting a new target
Reloading is not necessary anymore since https://go-review.googlesource.com/c/vscode-go/+/254370/ got merged.
1 parent 7829b86 commit c4408eb

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/extension.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ export async function activate(context: vscode.ExtensionContext) {
7373
}
7474

7575
// Update the configuration in the current workspace.
76+
// This will automatically reload gopls.
7677
const config = vscode.workspace.getConfiguration('go', null);
7778
let envVars = config.get<NodeJS.Dict<string>>('toolsEnvVars', {});
7879
envVars.GOROOT = goroot ? goroot: undefined;
@@ -90,12 +91,6 @@ export async function activate(context: vscode.ExtensionContext) {
9091
let history = context.globalState.get<string[]>('history') || [];
9192
moveElementToFront(history, target);
9293
context.globalState.update('history', history);
93-
94-
// Success!
95-
let buttonClicked = await vscode.window.showInformationMessage(`Updated TinyGo target to ${target}. You may need to reload this window for the changes to take effect.`, 'Reload');
96-
if (buttonClicked === 'Reload') {
97-
vscode.commands.executeCommand('workbench.action.reloadWindow');
98-
}
9994
});
10095

10196
context.subscriptions.push(disposable);

0 commit comments

Comments
 (0)