Skip to content

Commit bdcd7a6

Browse files
committed
src/goMain.ts: remove prompt for nightly extension users
The communication channel is not very active. Remove extra code and distraction. Change-Id: Ie64e6abdcf95ab5d07b4d1fd6348e05c3ea1a439 Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/385179 Trust: Hyang-Ah Hana Kim <[email protected]> Run-TryBot: Hyang-Ah Hana Kim <[email protected]> TryBot-Result: kokoro <[email protected]> Reviewed-by: Suzy Mueller <[email protected]>
1 parent b3048fc commit bdcd7a6

File tree

1 file changed

+0
-44
lines changed

1 file changed

+0
-44
lines changed

src/goMain.ts

Lines changed: 0 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -143,12 +143,6 @@ export async function activate(ctx: vscode.ExtensionContext): Promise<ExtensionA
143143
});
144144
}
145145

146-
if (isInPreviewMode()) {
147-
// For Nightly extension users, show a message directing them to forums
148-
// to give feedback.
149-
setTimeout(showGoNightlyWelcomeMessage, 10 * timeMinute);
150-
}
151-
152146
// Show the Go welcome page on update.
153147
if (!IsInCloudIDE) {
154148
showGoWelcomePage(ctx);
@@ -753,44 +747,6 @@ export function shouldShowGoWelcomePage(showVersions: string[], newVersion: stri
753747
return semver.gte(coercedNew, coercedOld) && showVersions.includes(coercedNew.toString());
754748
}
755749

756-
async function showGoNightlyWelcomeMessage() {
757-
const shown = getFromGlobalState(goNightlyPromptKey, false);
758-
if (shown === true) {
759-
return;
760-
}
761-
const prompt = async () => {
762-
const selected = await vscode.window.showInformationMessage(
763-
`Thank you for testing new features by using the Go Nightly extension!
764-
We'd like to welcome you to share feedback and/or join our community of Go Nightly users and developers.`,
765-
'Share feedback',
766-
'Community resources'
767-
);
768-
switch (selected) {
769-
case 'Share feedback':
770-
await vscode.env.openExternal(
771-
vscode.Uri.parse('https://github.com/golang/vscode-go/blob/master/docs/nightly.md#feedback')
772-
);
773-
break;
774-
case 'Community resources':
775-
await vscode.env.openExternal(
776-
vscode.Uri.parse('https://github.com/golang/vscode-go/blob/master/docs/nightly.md#community')
777-
);
778-
break;
779-
default:
780-
return;
781-
}
782-
// Only prompt again if the user clicked one of the buttons.
783-
// They may want to look at the other option.
784-
prompt();
785-
};
786-
prompt();
787-
788-
// Update state to indicate that we've shown this message to the user.
789-
updateGlobalState(goNightlyPromptKey, true);
790-
}
791-
792-
const goNightlyPromptKey = 'goNightlyPrompt';
793-
794750
export function deactivate() {
795751
return Promise.all([
796752
cancelRunningTests(),

0 commit comments

Comments
 (0)