未验证 提交 6c80a009 编写于 作者: H Harald Kirschner 提交者: GitHub

Initial draft for web-optimized walkthrough (#131153)

Co-authored-by: NJackson Kearl <jakearl@microsoft.com>
上级 ca58d1de
......@@ -377,6 +377,10 @@
overflow: hidden;
}
.monaco-workbench .part.editor>.content .gettingStartedContainer .gettingStartedSlideDetails .getting-started-step .button-container:not(:last-of-type) {
margin-bottom: 6px;
}
.monaco-workbench .part.editor>.content .gettingStartedContainer.animatable .gettingStartedSlideDetails .getting-started-step {
transition: height .1s linear;
}
......
......@@ -154,6 +154,16 @@ export const walkthroughs: GettingStartedWalkthroughContent = [
],
media: { type: 'markdown', path: 'example_markdown_media', }
},
{
id: 'settingsSyncWeb',
title: localize('gettingStarted.settingsSync.title', "Sync your stuff across devices"),
description: localize('gettingStarted.settingsSync.description.interpolated', "Never lose the perfect VS Code setup! Settings Sync will back up and share settings, keybindings & extensions across several installations.\n{0}", Button(localize('enableSync', "Enable Settings Sync"), 'command:workbench.userDataSync.actions.turnOn')),
when: 'workspacePlatform == \'webworker\' && syncStatus != uninitialized',
completionEvents: ['onEvent:sync-enabled'],
media: {
type: 'svg', altText: 'The "Turn on Sync" entry in the settings gear menu.', path: 'settingsSync.svg'
},
},
{
id: 'findLanguageExtensions',
title: localize('gettingStarted.findLanguageExts.title', "Rich support for all your languages"),
......@@ -169,6 +179,15 @@ export const walkthroughs: GettingStartedWalkthroughContent = [
description: localize('gettingStarted.commandPalette.description.interpolated', "Commands Palette is the keyboard way to accomplish any task in VS Code. **Practice** by looking up your frequently used commands to save time and keep in the flow.\n{0}\n__Try searching for 'view toggle'.__", Button(localize('commandPalette', "Open Command Palette"), 'command:workbench.action.showCommands')),
media: { type: 'svg', altText: 'Command Palette overlay for searching and executing commands.', path: 'commandPalette.svg' },
},
{
id: 'extensionsWeb',
title: localize('gettingStarted.extensions.title', "Limitless extensibility"),
description: localize('gettingStarted.extensions.description.interpolated', "Extensions are VS Code's power-ups. They range from handy productivity hacks, expanding out-of-the-box features, to adding completely new capabilities.\n{0}", Button(localize('browseRecommended', "Browse Recommended Extensions"), 'command:workbench.extensions.action.showPopularExtensions')),
when: 'workspacePlatform == \'webworker\'',
media: {
type: 'svg', altText: 'VS Code extension marketplace with featured language extensions', path: 'extensions.svg'
},
},
{
id: 'workspaceTrust',
title: localize('gettingStarted.workspaceTrust.title', "Safely browse and edit code"),
......@@ -178,11 +197,20 @@ export const walkthroughs: GettingStartedWalkthroughContent = [
type: 'svg', altText: 'Workspace Trust editor in Restricted mode and a primary button for switching to Trusted mode.', path: 'workspaceTrust.svg'
},
},
{
id: 'pickAFolderTask-Web',
title: localize('gettingStarted.setup.OpenFolder.title', "Open up your code"),
description: localize('gettingStarted.setup.OpenFolderWeb.description.interpolated', "You're all set to start coding. Open a project folder to get your files into VS Code.\n{0}\n{1}", Button(localize('openLocalFolder', "Open Local Folder"), 'command:workbench.action.addRootFolder'), Button(localize('openRepository', "Open Repository"), 'command:remoteHub.openRepository')),
when: 'isWeb && workspaceFolderCount == 0',
media: {
type: 'svg', altText: 'Explorer view showing buttons for opening folder and cloning repository.', path: 'openFolder.svg'
}
},
{
id: 'pickAFolderTask-Mac',
title: localize('gettingStarted.setup.OpenFolder.title', "Open up your code"),
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')),
when: 'isMac && workspaceFolderCount == 0',
when: '!isWeb && isMac && workspaceFolderCount == 0',
media: {
type: 'svg', altText: 'Explorer view showing buttons for opening folder and cloning repository.', path: 'openFolder.svg'
}
......@@ -191,7 +219,7 @@ export const walkthroughs: GettingStartedWalkthroughContent = [
id: 'pickAFolderTask-Other',
title: localize('gettingStarted.setup.OpenFolder.title', "Open up your code"),
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')),
when: '!isMac && workspaceFolderCount == 0',
when: '!isWeb && !isMac && workspaceFolderCount == 0',
media: {
type: 'svg', altText: 'Explorer view showing buttons for opening folder and cloning repository.', path: 'openFolder.svg'
}
......@@ -257,7 +285,7 @@ export const walkthroughs: GettingStartedWalkthroughContent = [
id: 'settingsSync',
title: localize('gettingStarted.settingsSync.title', "Sync your stuff across devices"),
description: localize('gettingStarted.settingsSync.description.interpolated', "Never lose the perfect VS Code setup! Settings Sync will back up and share settings, keybindings & extensions across several installations.\n{0}", Button(localize('enableSync', "Enable Settings Sync"), 'command:workbench.userDataSync.actions.turnOn')),
when: 'syncStatus != uninitialized',
when: 'workspacePlatform != \'webworker\' && syncStatus != uninitialized',
completionEvents: ['onEvent:sync-enabled'],
media: {
type: 'svg', altText: 'The "Turn on Sync" entry in the settings gear menu.', path: 'settingsSync.svg'
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册