Skip to content

Commit 4a5e926

Browse files
authored
Clesn new welcome experience (microsoft#247281)
1 parent e59f82f commit 4a5e926

3 files changed

Lines changed: 11 additions & 12 deletions

File tree

src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.contribution.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -283,9 +283,9 @@ registerAction2(class extends Action2 {
283283
}));
284284
disposables.add(quickPick.onDidHide(() => disposables.dispose()));
285285
await extensionService.whenInstalledExtensionsRegistered();
286-
gettingStartedService.onDidAddWalkthrough(async () => {
286+
disposables.add(gettingStartedService.onDidAddWalkthrough(async () => {
287287
quickPick.items = await this.getQuickPickItems(contextService, gettingStartedService);
288-
});
288+
}));
289289
quickPick.show();
290290
quickPick.busy = false;
291291
}

src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1603,9 +1603,6 @@ export class GettingStartedPage extends EditorPane {
16031603
// Register listeners for step selection
16041604
this.registerDispatchListeners();
16051605

1606-
// Add handler for the step selection event
1607-
this.detailsPageDisposables.add(this.stepDisposables);
1608-
16091606
this.detailsScrollbar.scanDomNode();
16101607
this.detailsPageScrollbar?.scanDomNode();
16111608
}
@@ -1633,6 +1630,8 @@ export class GettingStartedPage extends EditorPane {
16331630
}
16341631

16351632
private buildCategorySlide(categoryID: string, selectedStep?: string) {
1633+
this.container.classList.remove('newSlide');
1634+
16361635
if (this.detailsScrollbar) { this.detailsScrollbar.dispose(); }
16371636

16381637
this.extensionService.whenInstalledExtensionsRegistered().then(() => {

src/vs/workbench/contrib/welcomeGettingStarted/common/gettingStartedContent.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -676,11 +676,11 @@ export const walkthroughs: GettingStartedWalkthroughContent = [
676676
content: {
677677
type: 'steps',
678678
steps: [
679-
createCopilotSetupStep('CopilotSetupSignedOut', CopilotSignedOutButton, 'chatSetupSignedOut', true),
680-
createCopilotSetupStep('CopilotSetupComplete', CopilotCompleteButton, 'chatSetupInstalled && (chatPlanPro || chatPlanLimited)', false),
681-
createCopilotSetupStep('CopilotSetupSignedIn', CopilotSignedInButton, '!chatSetupSignedOut && (!chatSetupInstalled || chatPlanCanSignUp)', true),
679+
createCopilotSetupStep('NewCopilotSetupSignedOut', CopilotSignedOutButton, 'chatSetupSignedOut', true),
680+
createCopilotSetupStep('NewCopilotSetupComplete', CopilotCompleteButton, 'chatSetupInstalled && (chatPlanPro || chatPlanLimited)', false),
681+
createCopilotSetupStep('NewCopilotSetupSignedIn', CopilotSignedInButton, '!chatSetupSignedOut && (!chatSetupInstalled || chatPlanCanSignUp)', true),
682682
{
683-
id: 'pickColorTheme',
683+
id: 'newPickColorTheme',
684684
title: localize('gettingStarted.pickColor.title', "Choose your theme"),
685685
description: localize('gettingStarted.pickColor.description.interpolated', "The right theme helps you focus on your code, is easy on your eyes, and is simply more fun to use.\n{0}", Button(localize('titleID', "Browse Color Themes"), 'command:workbench.action.selectTheme')),
686686
completionEvents: [
@@ -690,7 +690,7 @@ export const walkthroughs: GettingStartedWalkthroughContent = [
690690
media: { type: 'markdown', path: 'theme_picker', }
691691
},
692692
{
693-
id: 'findLanguageExtensions',
693+
id: 'newFindLanguageExtensions',
694694
title: localize('gettingStarted.findLanguageExts.title', "Rich support for all your languages"),
695695
description: localize('gettingStarted.findLanguageExts.description.interpolated', "Code smarter with syntax highlighting, code completion, linting and debugging. While many languages are built-in, many more can be added as extensions.\n{0}", Button(localize('browseLangExts', "Browse Language Extensions"), 'command:workbench.extensions.action.showLanguageExtensions')),
696696
when: 'workspacePlatform != \'webworker\'',
@@ -699,7 +699,7 @@ export const walkthroughs: GettingStartedWalkthroughContent = [
699699
},
700700
},
701701
{
702-
id: 'settingsAndSync',
702+
id: 'newSettingsAndSync',
703703
title: localize('gettingStarted.settings.title', "Tune your settings"),
704704
description: localize('gettingStarted.settingsAndSync.description.interpolated', "Customize every aspect of VS Code and your extensions to your liking. [Back up and sync](command:workbench.userDataSync.actions.turnOn) your essential customizations across all your devices.\n{0}", Button(localize('tweakSettings', "Open Settings"), 'command:toSide:workbench.action.openSettings')),
705705
when: 'syncStatus != uninitialized',
@@ -709,7 +709,7 @@ export const walkthroughs: GettingStartedWalkthroughContent = [
709709
},
710710
},
711711
{
712-
id: 'commandPaletteTask',
712+
id: 'newCommandPaletteTask',
713713
title: localize('gettingStarted.commandPalette.title', "Unlock productivity with the Command Palette "),
714714
description: localize('gettingStarted.commandPalette.description.interpolated', "Run commands without reaching for your mouse to accomplish any task in VS Code.\n{0}", Button(localize('commandPalette', "Open Command Palette"), 'command:workbench.action.showCommands')),
715715
media: { type: 'svg', altText: 'Command Palette overlay for searching and executing commands.', path: 'commandPalette.svg' },

0 commit comments

Comments
 (0)