Skip to content

Commit dfe13d4

Browse files
authored
don't show first view on Codespaces (#753)
Signed-off-by: Yan Zhang <[email protected]>
1 parent 72b9236 commit dfe13d4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/extension.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,10 @@ async function initializeExtension(_operationId: string, context: vscode.Extensi
5050

5151
// for control group where walkthrough is not enabled, present first view for once.
5252
const walkthroughEnabled = await isWalkthroughEnabled();
53-
if (walkthroughEnabled === false && !context.globalState.get(KEY_IS_WELCOME_PAGE_VIEWED)) {
53+
if (walkthroughEnabled === false // control group
54+
&& !context.globalState.get(KEY_IS_WELCOME_PAGE_VIEWED) // first time
55+
&& vscode.env.uiKind === vscode.UIKind.Desktop // desktop only (no popups on Codespaces)
56+
) {
5457
presentFirstView(context);
5558
}
5659

0 commit comments

Comments
 (0)