This commit is contained in:
Jackson Kearl 2021-07-13 16:57:41 -07:00
parent 28c480e783
commit 8914bff9cd
No known key found for this signature in database
GPG key ID: DA09A59C409FC400
2 changed files with 9 additions and 0 deletions

View file

@ -385,6 +385,7 @@ export class GettingStartedPage extends EditorPane {
id: x.id,
label: x.title,
detail: x.description,
description: x.source,
})), { canPickMany: false, title: localize('pickWalkthroughs', "Open Walkthrough...") });
if (selection) {
this.runDispatchCommand('selectCategory', selection.id);

View file

@ -43,6 +43,8 @@ export const hiddenEntriesConfigurationKey = 'workbench.welcomePage.hiddenCatego
export const walkthroughMetadataConfigurationKey = 'workbench.welcomePage.walkthroughMetadata';
export type WalkthroughMetaDataType = Map<string, { firstSeen: number; stepIDs: string[]; manaullyOpened: boolean }>;
const BUILT_IN_SOURCE = localize('builtin', "Built-In");
export const enum GettingStartedCategory {
Beginner = 'Beginner',
Intermediate = 'Intermediate',
@ -75,6 +77,7 @@ export interface IGettingStartedWalkthroughDescriptor {
description: string
isFeatured: boolean
order: number
source: string
next?: string
icon:
| { type: 'icon', icon: ThemeIcon }
@ -88,6 +91,7 @@ export interface IGettingStartedStartEntryDescriptor {
id: GettingStartedCategory | string
title: string
description: string
source: string
order: number
icon:
| { type: 'icon', icon: ThemeIcon }
@ -103,6 +107,7 @@ export interface IGettingStartedCategory {
description: string
isFeatured: boolean
order: number
source: string
next?: string
icon:
| { type: 'icon', icon: ThemeIcon }
@ -299,6 +304,7 @@ export class GettingStartedService extends Disposable implements IGettingStarted
...entry,
icon: { type: 'icon', icon: entry.icon },
order: index,
source: BUILT_IN_SOURCE,
when: ContextKeyExpr.deserialize(entry.when) ?? ContextKeyExpr.true()
});
});
@ -309,6 +315,7 @@ export class GettingStartedService extends Disposable implements IGettingStarted
...category,
icon: { type: 'icon', icon: category.icon },
order: index,
source: BUILT_IN_SOURCE,
when: ContextKeyExpr.deserialize(category.when) ?? ContextKeyExpr.true()
},
category.content.steps.map((step, index) => {
@ -447,6 +454,7 @@ export class GettingStartedService extends Disposable implements IGettingStarted
title: walkthrough.title,
id: categoryID,
isFeatured: false,
source: extension.displayName ?? extension.name,
order: Math.min(),
icon: {
type: 'image',