Skip to content

Commit c72c256

Browse files
authored
feat: "DENO_DISABLE_WELCOME_PAGE" env var (#1339)
1 parent 7e125c6 commit c72c256

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

client/src/commands.ts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -340,13 +340,16 @@ function showWelcomePageIfFirstUse(
340340
context: vscode.ExtensionContext,
341341
extensionContext: DenoExtensionContext,
342342
) {
343+
if (process.env.DENO_DISABLE_WELCOME_PAGE != null) {
344+
return;
345+
}
343346
const welcomeShown = context.globalState.get<boolean>("deno.welcomeShown") ??
344347
false;
345-
346-
if (!welcomeShown) {
347-
welcome(context, extensionContext)();
348-
context.globalState.update("deno.welcomeShown", true);
348+
if (welcomeShown) {
349+
return;
349350
}
351+
welcome(context, extensionContext)();
352+
context.globalState.update("deno.welcomeShown", true);
350353
}
351354

352355
export function showReferences(

0 commit comments

Comments
 (0)