@@ -10,12 +10,15 @@ import { URI } from '../../../../base/common/uri.js';
10
10
import { Schemas } from '../../../../base/common/network.js' ;
11
11
import { IUntypedEditorInput } from '../../../common/editor.js' ;
12
12
import { IEditorOptions } from '../../../../platform/editor/common/editor.js' ;
13
- import { IWalkthroughsService } from './gettingStartedService.js' ;
14
13
15
14
export const gettingStartedInputTypeId = 'workbench.editors.gettingStartedInput' ;
16
15
17
16
export interface GettingStartedEditorOptions extends IEditorOptions {
18
- selectedCategory ?: string ; selectedStep ?: string ; showTelemetryNotice ?: boolean ; showWelcome ?: boolean ;
17
+ selectedCategory ?: string ;
18
+ selectedStep ?: string ;
19
+ showTelemetryNotice ?: boolean ;
20
+ showWelcome ?: boolean ;
21
+ walkthroughPageTitle ?: string ;
19
22
}
20
23
21
24
export class GettingStartedInput extends EditorInput {
@@ -26,6 +29,7 @@ export class GettingStartedInput extends EditorInput {
26
29
private _selectedStep : string | undefined ;
27
30
private _showTelemetryNotice : boolean ;
28
31
private _showWelcome : boolean ;
32
+ private _walkthroughPageTitle : string | undefined ;
29
33
30
34
override get typeId ( ) : string {
31
35
return GettingStartedInput . ID ;
@@ -61,18 +65,17 @@ export class GettingStartedInput extends EditorInput {
61
65
}
62
66
63
67
constructor (
64
- options : GettingStartedEditorOptions ,
65
- @IWalkthroughsService private readonly walkthroughService : IWalkthroughsService
66
- ) {
68
+ options : GettingStartedEditorOptions ) {
67
69
super ( ) ;
68
70
this . _selectedCategory = options . selectedCategory ;
69
71
this . _selectedStep = options . selectedStep ;
70
72
this . _showTelemetryNotice = ! ! options . showTelemetryNotice ;
71
73
this . _showWelcome = options . showWelcome ?? true ;
74
+ this . _walkthroughPageTitle = options . walkthroughPageTitle ;
72
75
}
73
76
74
77
override getName ( ) {
75
- return this . selectedCategory ? localize ( 'walkthroughPageTitle' , 'Walkthrough: ' ) + this . walkthroughService . getWalkthrough ( this . selectedCategory ) . walkthroughPageTitle : localize ( 'getStarted' , "Welcome" ) ;
78
+ return this . walkthroughPageTitle ? localize ( 'walkthroughPageTitle' , 'Walkthrough: ' ) + this . walkthroughPageTitle : localize ( 'getStarted' , "Welcome" ) ;
76
79
}
77
80
78
81
get selectedCategory ( ) {
@@ -107,4 +110,12 @@ export class GettingStartedInput extends EditorInput {
107
110
set showWelcome ( value : boolean ) {
108
111
this . _showWelcome = value ;
109
112
}
113
+
114
+ get walkthroughPageTitle ( ) : string | undefined {
115
+ return this . _walkthroughPageTitle ;
116
+ }
117
+
118
+ set walkthroughPageTitle ( value : string | undefined ) {
119
+ this . _walkthroughPageTitle = value ;
120
+ }
110
121
}
0 commit comments