Skip to content

Commit 1b83167

Browse files
authored
Disable mailing list if running in Codespaces (#14347)
1 parent 4ef9253 commit 1b83167

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/client/application/misc/joinMailingListPrompt.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
import { inject, injectable } from 'inversify';
55
import * as querystring from 'querystring';
6+
import { env, UIKind } from 'vscode';
67
import { IExtensionSingleActivationService } from '../../activation/types';
78
import { IApplicationEnvironment, IApplicationShell } from '../../common/application/types';
89
import { JoinMailingListPromptVariants } from '../../common/experiments/groups';
@@ -28,9 +29,9 @@ export class JoinMailingListPrompt implements IExtensionSingleActivationService
2829

2930
public async activate(): Promise<void> {
3031
// Only show the prompt if we have never shown it before. True here, means we have
31-
// shown the prompt before.
32-
if (this.storage.value) {
33-
return Promise.resolve();
32+
// shown the prompt before. Also do not show the prompt if running in Codespaces.
33+
if (this.storage.value || env.uiKind === UIKind?.Web) {
34+
return;
3435
}
3536

3637
let promptContent: string | undefined;

0 commit comments

Comments
 (0)