src/goEnvironment: make the window reload request visible
After the Go version change action, the extension must
restart. Make the reload request message modal, so it
is hard to miss.
Change-Id: I834f159a6329ea7f6ccf9beee69b5dae6d904436
Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/450675
Reviewed-by: Jamal Carvalho <jamal@golang.org>
Reviewed-by: Peter Weinberger <pjw@google.com>
Run-TryBot: Hyang-Ah Hana Kim <hyangah@gmail.com>
TryBot-Result: kokoro <noreply+kokoro@google.com>
diff --git a/src/goEnvironmentStatus.ts b/src/goEnvironmentStatus.ts
index 7902b84..d086f4f 100644
--- a/src/goEnvironmentStatus.ts
+++ b/src/goEnvironmentStatus.ts
@@ -187,8 +187,11 @@
// prompt the user to reload the window.
// promptReload defaults to true and should only be false for tests.
if (promptReload) {
- const choice = await vscode.window.showInformationMessage(
+ const choice = await vscode.window.showWarningMessage(
'Please reload the window to finish applying Go version changes.',
+ {
+ modal: true
+ },
'Reload Window'
);
if (choice === 'Reload Window') {