Skip to content

Commit 478b036

Browse files
authored
don't duplicate walkthrough steps, add when clause (microsoft#226983)
fix microsoft#226841
1 parent be0d177 commit 478b036

File tree

1 file changed

+2
-85
lines changed

1 file changed

+2
-85
lines changed

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

Lines changed: 2 additions & 85 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,7 @@ export const walkthroughs: GettingStartedWalkthroughContent = [
226226
'onSettingChanged:workbench.colorTheme',
227227
'onCommand:workbench.action.selectTheme'
228228
],
229+
when: '!accessibilityModeEnabled',
229230
media: { type: 'markdown', path: 'theme_picker', }
230231
},
231232
{
@@ -399,7 +400,7 @@ export const walkthroughs: GettingStartedWalkthroughContent = [
399400
isFeatured: true,
400401
icon: setupIcon,
401402
when: CONTEXT_ACCESSIBILITY_MODE_ENABLED.key,
402-
next: 'SetupScreenReaderExtended',
403+
next: 'Setup',
403404
content: {
404405
type: 'steps',
405406
steps: [
@@ -470,90 +471,6 @@ export const walkthroughs: GettingStartedWalkthroughContent = [
470471
]
471472
}
472473
},
473-
{
474-
id: 'SetupScreenReaderExtended',
475-
title: localize('gettingStarted.setupScreenReaderExtended.title', "Learn more about using VS Code with a Screen Reader"),
476-
description: localize('gettingStarted.setupScreenReaderExtended.description', "Customize your editor, learn the basics, and start coding"),
477-
isFeatured: true,
478-
icon: setupIcon,
479-
when: `!isWeb && ${CONTEXT_ACCESSIBILITY_MODE_ENABLED.key}`,
480-
content: {
481-
type: 'steps',
482-
steps: [
483-
{
484-
id: 'extensionsWeb',
485-
title: localize('gettingStarted.extensions.title', "Code with extensions"),
486-
description: localize('gettingStarted.extensionsWeb.description.interpolated', "Extensions are VS Code's power-ups. A growing number are becoming available in the web.\n{0}", Button(localize('browsePopularWeb', "Browse Popular Web Extensions"), 'command:workbench.extensions.action.showPopularExtensions')),
487-
when: 'workspacePlatform == \'webworker\'',
488-
media: {
489-
type: 'markdown', path: 'empty'
490-
}
491-
},
492-
{
493-
id: 'findLanguageExtensions',
494-
title: localize('gettingStarted.findLanguageExts.title', "Rich support for all your languages"),
495-
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')),
496-
when: 'workspacePlatform != \'webworker\'',
497-
media: {
498-
type: 'markdown', path: 'empty'
499-
}
500-
},
501-
{
502-
id: 'settings',
503-
title: localize('gettingStarted.settings.title', "Tune your settings"),
504-
description: localize('gettingStarted.settings.description.interpolated', "Customize every aspect of VS Code and your extensions to your liking. Commonly used settings are listed first to get you started.\n{0}", Button(localize('tweakSettings', "Open Settings"), 'command:toSide:workbench.action.openSettings')),
505-
media: {
506-
type: 'markdown', path: 'empty'
507-
}
508-
},
509-
{
510-
id: 'settingsSync',
511-
title: localize('gettingStarted.settingsSync.title', "Sync settings across devices"),
512-
description: localize('gettingStarted.settingsSync.description.interpolated', "Keep your essential customizations backed up and updated across all your devices.\n{0}", Button(localize('enableSync', "Backup and Sync Settings"), 'command:workbench.userDataSync.actions.turnOn')),
513-
when: 'syncStatus != uninitialized',
514-
completionEvents: ['onEvent:sync-enabled'],
515-
media: {
516-
type: 'markdown', path: 'empty'
517-
}
518-
},
519-
{
520-
id: 'commandPaletteTask',
521-
title: localize('gettingStarted.commandPalette.title', "Unlock productivity with the Command Palette "),
522-
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')),
523-
media: {
524-
type: 'markdown', path: 'empty'
525-
}
526-
},
527-
{
528-
id: 'pickAFolderTask-Mac',
529-
title: localize('gettingStarted.setup.OpenFolder.title', "Open up your code"),
530-
description: localize('gettingStarted.setup.OpenFolder.description.interpolated', "You're all set to start coding. Open a project folder to get your files into VS Code.\n{0}", Button(localize('pickFolder', "Pick a Folder"), 'command:workbench.action.files.openFileFolder')),
531-
when: 'isMac && workspaceFolderCount == 0',
532-
media: {
533-
type: 'markdown', path: 'empty'
534-
}
535-
},
536-
{
537-
id: 'pickAFolderTask-Other',
538-
title: localize('gettingStarted.setup.OpenFolder.title', "Open up your code"),
539-
description: localize('gettingStarted.setup.OpenFolder.description.interpolated', "You're all set to start coding. Open a project folder to get your files into VS Code.\n{0}", Button(localize('pickFolder', "Pick a Folder"), 'command:workbench.action.files.openFolder')),
540-
when: '!isMac && workspaceFolderCount == 0',
541-
media: {
542-
type: 'markdown', path: 'empty'
543-
}
544-
},
545-
{
546-
id: 'quickOpen',
547-
title: localize('gettingStarted.quickOpen.title', "Quickly navigate between your files"),
548-
description: localize('gettingStarted.quickOpen.description.interpolated', "Navigate between files in an instant with one keystroke. Tip: Open multiple files by pressing the right arrow key.\n{0}", Button(localize('quickOpen', "Quick Open a File"), 'command:toSide:workbench.action.quickOpen')),
549-
when: 'workspaceFolderCount != 0',
550-
media: {
551-
type: 'markdown', path: 'empty'
552-
}
553-
},
554-
]
555-
}
556-
},
557474
{
558475
id: 'Beginner',
559476
isFeatured: false,

0 commit comments

Comments
 (0)