Skip to content

Commit 33fd4dc

Browse files
committed
Adding video tutorials to get started
1 parent 7c7b4a7 commit 33fd4dc

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,18 @@ configurationRegistry.registerConfiguration({
296296
type: 'boolean',
297297
default: true,
298298
description: localize('workbench.welcomePage.walkthroughs.openOnInstall', "When enabled, an extension's walkthrough will open upon install of the extension.")
299+
},
300+
'workbench.welcomePage.experimental.videoTutorials': {
301+
scope: ConfigurationScope.MACHINE,
302+
type: 'string',
303+
enum: [
304+
'off',
305+
'on',
306+
'experimental'
307+
],
308+
tags: ['experimental'],
309+
default: 'off',
310+
description: localize('workbench.welcomePage.videoTutorials', "When enabled, the get started page has additional links to video tutorials.")
299311
}
300312
}
301313
});

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

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,28 @@ export const startEntries: GettingStartedStartEntryContent = [
152152
command: 'welcome.showAllWalkthroughs',
153153
}
154154
},
155+
{
156+
id: 'topLevelVideoTutorials',
157+
title: localize('gettingStarted.topLevelVideoTutorials.title', "Watch Video Tutorials"),
158+
description: localize('gettingStarted.topLevelVideoTutorials.description', "Watch our series of short & practical video tutorials for VS Code's key features."),
159+
icon: Codicon.playCircle,
160+
when: 'config.workbench.welcomePage.experimental.videoTutorials == on',
161+
content: {
162+
type: 'startEntry',
163+
command: 'https://aka.ms/vscode-getting-started-video',
164+
}
165+
},
166+
{
167+
id: 'topLevelVideoTutorialsExperimental',
168+
title: localize('gettingStarted.topLevelVideoTutorials.title', "Watch Video Tutorials"),
169+
description: localize('gettingStarted.topLevelVideoTutorials.description', "Watch our series of short & practical video tutorials for VS Code's key features."),
170+
when: 'config.workbench.welcomePage.experimental.videoTutorials == experimental',
171+
icon: Codicon.playCircle,
172+
content: {
173+
type: 'startEntry',
174+
command: 'https://aka.ms/vscode-videos',
175+
}
176+
},
155177
];
156178

157179
const Button = (title: string, href: string) => `[${title}](${href})`;

0 commit comments

Comments
 (0)