Skip to content

Commit 8e9b67d

Browse files
bamurtaughBrigit Murtaugh
andauthored
Add Copilot setup steps for remote web walkthroughs (microsoft#249576)
* Add Copilot setup steps for Codespaces walkthrough * Update for any remote * fix: update context key * Comment pick a folder web * fix: standardize quotes in Copilot setup steps for consistency * Comment --------- Co-authored-by: Brigit Murtaugh <[email protected]>
1 parent 9102c10 commit 8e9b67d

File tree

1 file changed

+14
-9
lines changed

1 file changed

+14
-9
lines changed

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

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,10 @@ export const walkthroughs: GettingStartedWalkthroughContent = [
367367
content: {
368368
type: 'steps',
369369
steps: [
370+
// Copilot setup steps for remote scenarios, using the same steps as non-web walkthroughs but with a remote-specific when clause
371+
createCopilotSetupStep('CopilotSetupSignedOut', CopilotSignedOutButton, 'chatEntitlementSignedOut && !!remoteName', true),
372+
createCopilotSetupStep('CopilotSetupComplete', CopilotCompleteButton, 'chatSetupInstalled && !chatSetupDisabled && (chatPlanPro || chatPlanProPlus || chatPlanBusiness || chatPlanEnterprise || chatPlanLimited) && !!remoteName', false),
373+
createCopilotSetupStep('CopilotSetupSignedIn', CopilotSignedInButton, '!chatEntitlementSignedOut && (!chatSetupInstalled || chatSetupDisabled || chatPlanCanSignUp) && !!remoteName', true),
370374
{
371375
id: 'pickColorThemeWeb',
372376
title: localize('gettingStarted.pickColor.title', "Choose your theme"),
@@ -420,15 +424,16 @@ export const walkthroughs: GettingStartedWalkthroughContent = [
420424
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')),
421425
media: { type: 'svg', altText: 'Command Palette overlay for searching and executing commands.', path: 'commandPalette.svg' },
422426
},
423-
{
424-
id: 'pickAFolderTask-WebWeb',
425-
title: localize('gettingStarted.setup.OpenFolder.title', "Open up your code"),
426-
description: localize('gettingStarted.setup.OpenFolderWeb.description.interpolated', "You're all set to start coding. You can open a local project or a remote repository to get your files into VS Code.\n{0}\n{1}", Button(localize('openFolder', "Open Folder"), 'command:workbench.action.addRootFolder'), Button(localize('openRepository', "Open Repository"), 'command:remoteHub.openRepository')),
427-
when: 'workspaceFolderCount == 0',
428-
media: {
429-
type: 'svg', altText: 'Explorer view showing buttons for opening folder and cloning repository.', path: 'openFolder.svg'
430-
}
431-
},
427+
// Hidden in favor of copilot entry
428+
// {
429+
// id: 'pickAFolderTask-WebWeb',
430+
// title: localize('gettingStarted.setup.OpenFolder.title', "Open up your code"),
431+
// description: localize('gettingStarted.setup.OpenFolderWeb.description.interpolated', "You're all set to start coding. You can open a local project or a remote repository to get your files into VS Code.\n{0}\n{1}", Button(localize('openFolder', "Open Folder"), 'command:workbench.action.addRootFolder'), Button(localize('openRepository', "Open Repository"), 'command:remoteHub.openRepository')),
432+
// when: 'workspaceFolderCount == 0',
433+
// media: {
434+
// type: 'svg', altText: 'Explorer view showing buttons for opening folder and cloning repository.', path: 'openFolder.svg'
435+
// }
436+
// },
432437
{
433438
id: 'quickOpenWeb',
434439
title: localize('gettingStarted.quickOpen.title', "Quickly navigate between your files"),

0 commit comments

Comments
 (0)