Skip to content

Commit 379476f

Browse files
authored
Hide non-functional walkthroughs in virtual workspaces
1 parent deb07b8 commit 379476f

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/vs/workbench/contrib/welcome/gettingStarted/common/gettingStartedContent.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ export const walkthroughs: GettingStartedWalkthroughContent = [
147147
id: 'findLanguageExtensions',
148148
title: localize('gettingStarted.findLanguageExts.title', "Rich support for all your languages"),
149149
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')),
150+
when: 'virtualWorkspace != \'vscode-vfs\'',
150151
media: {
151152
type: 'svg', altText: 'Language extensions', path: 'languages.svg'
152153
},
@@ -161,7 +162,7 @@ export const walkthroughs: GettingStartedWalkthroughContent = [
161162
id: 'workspaceTrust',
162163
title: localize('gettingStarted.workspaceTrust.title', "Safely browse and edit code"),
163164
description: localize('gettingStarted.workspaceTrust.description.interpolated', "{0} lets you decide whether your project folders should **allow or restrict** automatic code execution __(required for extensions, debugging, etc)__.\nOpening a file/folder will prompt to grant trust. You can always {1} later.", Button(localize('workspaceTrust', "Workspace Trust"), 'https://github.com/microsoft/vscode-docs/blob/workspaceTrust/docs/editor/workspace-trust.md'), Button(localize('enableTrust', "enable trust"), 'command:toSide:workbench.action.manageTrustedDomain')),
164-
when: '!isWorkspaceTrusted && workspaceFolderCount == 0',
165+
when: 'virtualWorkspace != \'vscode-vfs\' && !isWorkspaceTrusted && workspaceFolderCount == 0',
165166
media: {
166167
type: 'svg', altText: 'Workspace Trust editor in Restricted mode and a primary button for switching to Trusted mode.', path: 'workspaceTrust.svg'
167168
},
@@ -219,7 +220,7 @@ export const walkthroughs: GettingStartedWalkthroughContent = [
219220
id: 'terminal',
220221
title: localize('gettingStarted.terminal.title', "Convenient built-in terminal"),
221222
description: localize('gettingStarted.terminal.description.interpolated', "Quickly run shell commands and monitor build output, right next to your code.\n{0}", Button(localize('showTerminal', "Show Terminal Panel"), 'command:workbench.action.terminal.toggleTerminal')),
222-
when: 'remoteName != codespaces && !terminalIsOpen',
223+
when: 'virtualWorkspace != \'vscode-vfs\' && remoteName != codespaces && !terminalIsOpen',
223224
media: {
224225
type: 'svg', altText: 'Integrated terminal running a few npm commands', path: 'terminal.svg'
225226
},
@@ -228,6 +229,7 @@ export const walkthroughs: GettingStartedWalkthroughContent = [
228229
id: 'extensions',
229230
title: localize('gettingStarted.extensions.title', "Limitless extensibility"),
230231
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.showRecommendedExtensions')),
232+
when: 'virtualWorkspace != \'vscode-vfs\'',
231233
media: {
232234
type: 'svg', altText: 'VS Code extension marketplace with featured language extensions', path: 'extensions.svg'
233235
},
@@ -281,7 +283,7 @@ export const walkthroughs: GettingStartedWalkthroughContent = [
281283
id: 'debugging',
282284
title: localize('gettingStarted.debug.title', "Watch your code in action"),
283285
description: localize('gettingStarted.debug.description.interpolated', "Accelerate your edit, build, test, and debug loop by setting up a launch configuration.\n{0}", Button(localize('runProject', "Run your Project"), 'command:workbench.action.debug.selectandstart')),
284-
when: 'workspaceFolderCount != 0',
286+
when: 'virtualWorkspace != \'vscode-vfs\' && workspaceFolderCount != 0',
285287
media: {
286288
type: 'svg', altText: 'Run and debug view.', path: 'debug.svg',
287289
},
@@ -316,7 +318,7 @@ export const walkthroughs: GettingStartedWalkthroughContent = [
316318
{
317319
id: 'tasks',
318320
title: localize('gettingStarted.tasks.title', "Automate your project tasks"),
319-
when: 'workspaceFolderCount != 0',
321+
when: 'virtualWorkspace != \'vscode-vfs\' && workspaceFolderCount != 0',
320322
description: localize('gettingStarted.tasks.description.interpolated', "Create tasks for your common workflows and enjoy the integrated experience of running scripts and automatically checking results.\n{0}", Button(localize('runTasks', "Run Auto-detected Tasks"), 'command:workbench.action.tasks.runTask')),
321323
media: {
322324
type: 'svg', altText: 'Task runner.', path: 'runTask.svg',

0 commit comments

Comments
 (0)