@codingame/monaco-vscode-walkthrough-service-override 4.5.1 → 4.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.contribution.js +50 -107
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.js +138 -249
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedColors.js +8 -35
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedExtensionPoint.js +61 -116
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedIcons.js +5 -4
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedInput.js +3 -6
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedService.js +74 -77
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/startupPage.js +29 -32
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/common/gettingStartedContent.js +147 -498
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/common/media/notebookProfile.js +4 -15
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/common/media/theme_picker.js +6 -25
- package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/editor/editorWalkThrough.js +5 -12
- package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/walkThrough.contribution.js +5 -12
- package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/walkThroughPart.js +24 -31
- package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/common/walkThroughContentProvider.js +2 -2
- package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/common/walkThroughUtils.js +4 -3
package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedColors.js
CHANGED
|
@@ -11,38 +11,11 @@ import 'vscode/vscode/vs/platform/theme/common/colors/quickpickColors';
|
|
|
11
11
|
import 'vscode/vscode/vs/platform/theme/common/colors/searchColors';
|
|
12
12
|
import { localizeWithPath } from 'vscode/vscode/vs/nls';
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
'
|
|
16
|
-
|
|
17
|
-
'
|
|
18
|
-
)));
|
|
19
|
-
registerColor('welcomePage.
|
|
20
|
-
'
|
|
21
|
-
|
|
22
|
-
'Background color for the tiles on the Welcome page.'
|
|
23
|
-
)));
|
|
24
|
-
registerColor('welcomePage.tileHoverBackground', { dark: ( lighten(editorWidgetBackground, .2)), light: ( darken(editorWidgetBackground, .1)), hcDark: null, hcLight: null }, ( localizeWithPath(
|
|
25
|
-
'vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedColors',
|
|
26
|
-
'welcomePage.tileHoverBackground',
|
|
27
|
-
'Hover background color for the tiles on the Welcome.'
|
|
28
|
-
)));
|
|
29
|
-
registerColor('welcomePage.tileBorder', { dark: '#ffffff1a', light: '#0000001a', hcDark: contrastBorder, hcLight: contrastBorder }, ( localizeWithPath(
|
|
30
|
-
'vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedColors',
|
|
31
|
-
'welcomePage.tileBorder',
|
|
32
|
-
'Border color for the tiles on the Welcome page.'
|
|
33
|
-
)));
|
|
34
|
-
registerColor('welcomePage.progress.background', { light: inputBackground, dark: inputBackground, hcDark: inputBackground, hcLight: inputBackground }, ( localizeWithPath(
|
|
35
|
-
'vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedColors',
|
|
36
|
-
'welcomePage.progress.background',
|
|
37
|
-
'Foreground color for the Welcome page progress bars.'
|
|
38
|
-
)));
|
|
39
|
-
registerColor('welcomePage.progress.foreground', { light: textLinkForeground, dark: textLinkForeground, hcDark: textLinkForeground, hcLight: textLinkForeground }, ( localizeWithPath(
|
|
40
|
-
'vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedColors',
|
|
41
|
-
'welcomePage.progress.foreground',
|
|
42
|
-
'Background color for the Welcome page progress bars.'
|
|
43
|
-
)));
|
|
44
|
-
registerColor('walkthrough.stepTitle.foreground', { light: '#000000', dark: '#ffffff', hcDark: null, hcLight: null }, ( localizeWithPath(
|
|
45
|
-
'vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedColors',
|
|
46
|
-
'walkthrough.stepTitle.foreground',
|
|
47
|
-
'Foreground color of the heading of each walkthrough step'
|
|
48
|
-
)));
|
|
14
|
+
const _moduleId = "vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedColors";
|
|
15
|
+
registerColor('welcomePage.background', { light: null, dark: null, hcDark: null, hcLight: null }, ( localizeWithPath(_moduleId, 0, 'Background color for the Welcome page.')));
|
|
16
|
+
registerColor('welcomePage.tileBackground', { dark: editorWidgetBackground, light: editorWidgetBackground, hcDark: '#000', hcLight: editorWidgetBackground }, ( localizeWithPath(_moduleId, 1, 'Background color for the tiles on the Welcome page.')));
|
|
17
|
+
registerColor('welcomePage.tileHoverBackground', { dark: ( (lighten(editorWidgetBackground, .2))), light: ( (darken(editorWidgetBackground, .1))), hcDark: null, hcLight: null }, ( localizeWithPath(_moduleId, 2, 'Hover background color for the tiles on the Welcome.')));
|
|
18
|
+
registerColor('welcomePage.tileBorder', { dark: '#ffffff1a', light: '#0000001a', hcDark: contrastBorder, hcLight: contrastBorder }, ( localizeWithPath(_moduleId, 3, 'Border color for the tiles on the Welcome page.')));
|
|
19
|
+
registerColor('welcomePage.progress.background', { light: inputBackground, dark: inputBackground, hcDark: inputBackground, hcLight: inputBackground }, ( localizeWithPath(_moduleId, 4, 'Foreground color for the Welcome page progress bars.')));
|
|
20
|
+
registerColor('welcomePage.progress.foreground', { light: textLinkForeground, dark: textLinkForeground, hcDark: textLinkForeground, hcLight: textLinkForeground }, ( localizeWithPath(_moduleId, 5, 'Background color for the Welcome page progress bars.')));
|
|
21
|
+
registerColor('walkthrough.stepTitle.foreground', { light: '#000000', dark: '#ffffff', hcDark: null, hcLight: null }, ( localizeWithPath(_moduleId, 6, 'Foreground color of the heading of each walkthrough step')));
|
|
@@ -1,17 +1,14 @@
|
|
|
1
1
|
import { localizeWithPath } from 'vscode/vscode/vs/nls';
|
|
2
2
|
import { ExtensionsRegistry } from 'vscode/vscode/vs/workbench/services/extensions/common/extensionsRegistry';
|
|
3
3
|
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
'title',
|
|
7
|
-
"Title"
|
|
8
|
-
));
|
|
4
|
+
const _moduleId = "vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedExtensionPoint";
|
|
5
|
+
const titleTranslated = ( localizeWithPath(_moduleId, 0, "Title"));
|
|
9
6
|
const walkthroughsExtensionPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
10
7
|
extensionPoint: 'walkthroughs',
|
|
11
8
|
jsonSchema: {
|
|
12
9
|
description: ( localizeWithPath(
|
|
13
|
-
|
|
14
|
-
|
|
10
|
+
_moduleId,
|
|
11
|
+
1,
|
|
15
12
|
"Contribute walkthroughs to help users getting started with your extension."
|
|
16
13
|
)),
|
|
17
14
|
type: 'array',
|
|
@@ -22,41 +19,29 @@ const walkthroughsExtensionPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
|
22
19
|
properties: {
|
|
23
20
|
id: {
|
|
24
21
|
type: 'string',
|
|
25
|
-
description: ( localizeWithPath(
|
|
26
|
-
'vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedExtensionPoint',
|
|
27
|
-
'walkthroughs.id',
|
|
28
|
-
"Unique identifier for this walkthrough."
|
|
29
|
-
)),
|
|
22
|
+
description: ( localizeWithPath(_moduleId, 2, "Unique identifier for this walkthrough.")),
|
|
30
23
|
},
|
|
31
24
|
title: {
|
|
32
25
|
type: 'string',
|
|
33
|
-
description: ( localizeWithPath(
|
|
34
|
-
'vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedExtensionPoint',
|
|
35
|
-
'walkthroughs.title',
|
|
36
|
-
"Title of walkthrough."
|
|
37
|
-
))
|
|
26
|
+
description: ( localizeWithPath(_moduleId, 3, "Title of walkthrough."))
|
|
38
27
|
},
|
|
39
28
|
icon: {
|
|
40
29
|
type: 'string',
|
|
41
30
|
description: ( localizeWithPath(
|
|
42
|
-
|
|
43
|
-
|
|
31
|
+
_moduleId,
|
|
32
|
+
4,
|
|
44
33
|
"Relative path to the icon of the walkthrough. The path is relative to the extension location. If not specified, the icon defaults to the extension icon if available."
|
|
45
34
|
)),
|
|
46
35
|
},
|
|
47
36
|
description: {
|
|
48
37
|
type: 'string',
|
|
49
|
-
description: ( localizeWithPath(
|
|
50
|
-
'vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedExtensionPoint',
|
|
51
|
-
'walkthroughs.description',
|
|
52
|
-
"Description of walkthrough."
|
|
53
|
-
))
|
|
38
|
+
description: ( localizeWithPath(_moduleId, 5, "Description of walkthrough."))
|
|
54
39
|
},
|
|
55
40
|
featuredFor: {
|
|
56
41
|
type: 'array',
|
|
57
42
|
description: ( localizeWithPath(
|
|
58
|
-
|
|
59
|
-
|
|
43
|
+
_moduleId,
|
|
44
|
+
6,
|
|
60
45
|
"Walkthroughs that match one of these glob patterns appear as 'featured' in workspaces with the specified files. For example, a walkthrough for TypeScript projects might specify `tsconfig.json` here."
|
|
61
46
|
)),
|
|
62
47
|
items: {
|
|
@@ -66,18 +51,14 @@ const walkthroughsExtensionPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
|
66
51
|
when: {
|
|
67
52
|
type: 'string',
|
|
68
53
|
description: ( localizeWithPath(
|
|
69
|
-
|
|
70
|
-
|
|
54
|
+
_moduleId,
|
|
55
|
+
7,
|
|
71
56
|
"Context key expression to control the visibility of this walkthrough."
|
|
72
57
|
))
|
|
73
58
|
},
|
|
74
59
|
steps: {
|
|
75
60
|
type: 'array',
|
|
76
|
-
description: ( localizeWithPath(
|
|
77
|
-
'vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedExtensionPoint',
|
|
78
|
-
'walkthroughs.steps',
|
|
79
|
-
"Steps to complete as part of this walkthrough."
|
|
80
|
-
)),
|
|
61
|
+
description: ( localizeWithPath(_moduleId, 8, "Steps to complete as part of this walkthrough.")),
|
|
81
62
|
items: {
|
|
82
63
|
type: 'object',
|
|
83
64
|
required: ['id', 'title', 'media'],
|
|
@@ -92,24 +73,20 @@ const walkthroughsExtensionPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
|
92
73
|
id: {
|
|
93
74
|
type: 'string',
|
|
94
75
|
description: ( localizeWithPath(
|
|
95
|
-
|
|
96
|
-
|
|
76
|
+
_moduleId,
|
|
77
|
+
9,
|
|
97
78
|
"Unique identifier for this step. This is used to keep track of which steps have been completed."
|
|
98
79
|
)),
|
|
99
80
|
},
|
|
100
81
|
title: {
|
|
101
82
|
type: 'string',
|
|
102
|
-
description: ( localizeWithPath(
|
|
103
|
-
'vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedExtensionPoint',
|
|
104
|
-
'walkthroughs.steps.title',
|
|
105
|
-
"Title of step."
|
|
106
|
-
))
|
|
83
|
+
description: ( localizeWithPath(_moduleId, 10, "Title of step."))
|
|
107
84
|
},
|
|
108
85
|
description: {
|
|
109
86
|
type: 'string',
|
|
110
87
|
description: ( localizeWithPath(
|
|
111
|
-
|
|
112
|
-
|
|
88
|
+
_moduleId,
|
|
89
|
+
11,
|
|
113
90
|
"Description of step. Supports ``preformatted``, __italic__, and **bold** text. Use markdown-style links for commands or external links: {0}, {1}, or {2}. Links on their own line will be rendered as buttons.",
|
|
114
91
|
`[${titleTranslated}](command:myext.command)`,
|
|
115
92
|
`[${titleTranslated}](command:toSide:myext.command)`,
|
|
@@ -118,8 +95,8 @@ const walkthroughsExtensionPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
|
118
95
|
},
|
|
119
96
|
button: {
|
|
120
97
|
deprecationMessage: ( localizeWithPath(
|
|
121
|
-
|
|
122
|
-
|
|
98
|
+
_moduleId,
|
|
99
|
+
12,
|
|
123
100
|
"Deprecated. Use markdown links in the description instead, i.e. {0}, {1}, or {2}",
|
|
124
101
|
`[${titleTranslated}](command:myext.command)`,
|
|
125
102
|
`[${titleTranslated}](command:toSide:myext.command)`,
|
|
@@ -129,8 +106,8 @@ const walkthroughsExtensionPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
|
129
106
|
media: {
|
|
130
107
|
type: 'object',
|
|
131
108
|
description: ( localizeWithPath(
|
|
132
|
-
|
|
133
|
-
|
|
109
|
+
_moduleId,
|
|
110
|
+
13,
|
|
134
111
|
"Media to show alongside this step, either an image or markdown content."
|
|
135
112
|
)),
|
|
136
113
|
oneOf: [
|
|
@@ -139,16 +116,12 @@ const walkthroughsExtensionPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
|
139
116
|
additionalProperties: false,
|
|
140
117
|
properties: {
|
|
141
118
|
path: {
|
|
142
|
-
deprecationMessage: ( localizeWithPath(
|
|
143
|
-
'vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedExtensionPoint',
|
|
144
|
-
'pathDeprecated',
|
|
145
|
-
"Deprecated. Please use `image` or `markdown` instead"
|
|
146
|
-
))
|
|
119
|
+
deprecationMessage: ( localizeWithPath(_moduleId, 14, "Deprecated. Please use `image` or `markdown` instead"))
|
|
147
120
|
},
|
|
148
121
|
image: {
|
|
149
122
|
description: ( localizeWithPath(
|
|
150
|
-
|
|
151
|
-
|
|
123
|
+
_moduleId,
|
|
124
|
+
15,
|
|
152
125
|
"Path to an image - or object consisting of paths to light, dark, and hc images - relative to extension directory. Depending on context, the image will be displayed from 400px to 800px wide, with similar bounds on height. To support HIDPI displays, the image will be rendered at 1.5x scaling, for example a 900 physical pixels wide image will be displayed as 600 logical pixels wide."
|
|
153
126
|
)),
|
|
154
127
|
oneOf: [
|
|
@@ -161,32 +134,32 @@ const walkthroughsExtensionPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
|
161
134
|
properties: {
|
|
162
135
|
dark: {
|
|
163
136
|
description: ( localizeWithPath(
|
|
164
|
-
|
|
165
|
-
|
|
137
|
+
_moduleId,
|
|
138
|
+
16,
|
|
166
139
|
"Path to the image for dark themes, relative to extension directory."
|
|
167
140
|
)),
|
|
168
141
|
type: 'string',
|
|
169
142
|
},
|
|
170
143
|
light: {
|
|
171
144
|
description: ( localizeWithPath(
|
|
172
|
-
|
|
173
|
-
|
|
145
|
+
_moduleId,
|
|
146
|
+
17,
|
|
174
147
|
"Path to the image for light themes, relative to extension directory."
|
|
175
148
|
)),
|
|
176
149
|
type: 'string',
|
|
177
150
|
},
|
|
178
151
|
hc: {
|
|
179
152
|
description: ( localizeWithPath(
|
|
180
|
-
|
|
181
|
-
|
|
153
|
+
_moduleId,
|
|
154
|
+
18,
|
|
182
155
|
"Path to the image for hc themes, relative to extension directory."
|
|
183
156
|
)),
|
|
184
157
|
type: 'string',
|
|
185
158
|
},
|
|
186
159
|
hcLight: {
|
|
187
160
|
description: ( localizeWithPath(
|
|
188
|
-
|
|
189
|
-
|
|
161
|
+
_moduleId,
|
|
162
|
+
19,
|
|
190
163
|
"Path to the image for hc light themes, relative to extension directory."
|
|
191
164
|
)),
|
|
192
165
|
type: 'string',
|
|
@@ -198,8 +171,8 @@ const walkthroughsExtensionPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
|
198
171
|
altText: {
|
|
199
172
|
type: 'string',
|
|
200
173
|
description: ( localizeWithPath(
|
|
201
|
-
|
|
202
|
-
|
|
174
|
+
_moduleId,
|
|
175
|
+
20,
|
|
203
176
|
"Alternate text to display when the image cannot be loaded or in screen readers."
|
|
204
177
|
))
|
|
205
178
|
}
|
|
@@ -211,8 +184,8 @@ const walkthroughsExtensionPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
|
211
184
|
properties: {
|
|
212
185
|
svg: {
|
|
213
186
|
description: ( localizeWithPath(
|
|
214
|
-
|
|
215
|
-
|
|
187
|
+
_moduleId,
|
|
188
|
+
21,
|
|
216
189
|
"Path to an svg, color tokens are supported in variables to support theming to match the workbench."
|
|
217
190
|
)),
|
|
218
191
|
type: 'string',
|
|
@@ -220,8 +193,8 @@ const walkthroughsExtensionPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
|
220
193
|
altText: {
|
|
221
194
|
type: 'string',
|
|
222
195
|
description: ( localizeWithPath(
|
|
223
|
-
|
|
224
|
-
|
|
196
|
+
_moduleId,
|
|
197
|
+
20,
|
|
225
198
|
"Alternate text to display when the image cannot be loaded or in screen readers."
|
|
226
199
|
))
|
|
227
200
|
},
|
|
@@ -232,16 +205,12 @@ const walkthroughsExtensionPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
|
232
205
|
additionalProperties: false,
|
|
233
206
|
properties: {
|
|
234
207
|
path: {
|
|
235
|
-
deprecationMessage: ( localizeWithPath(
|
|
236
|
-
'vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedExtensionPoint',
|
|
237
|
-
'pathDeprecated',
|
|
238
|
-
"Deprecated. Please use `image` or `markdown` instead"
|
|
239
|
-
))
|
|
208
|
+
deprecationMessage: ( localizeWithPath(_moduleId, 14, "Deprecated. Please use `image` or `markdown` instead"))
|
|
240
209
|
},
|
|
241
210
|
markdown: {
|
|
242
211
|
description: ( localizeWithPath(
|
|
243
|
-
|
|
244
|
-
|
|
212
|
+
_moduleId,
|
|
213
|
+
22,
|
|
245
214
|
"Path to the markdown document, relative to extension directory."
|
|
246
215
|
)),
|
|
247
216
|
type: 'string',
|
|
@@ -252,8 +221,8 @@ const walkthroughsExtensionPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
|
252
221
|
},
|
|
253
222
|
completionEvents: {
|
|
254
223
|
description: ( localizeWithPath(
|
|
255
|
-
|
|
256
|
-
|
|
224
|
+
_moduleId,
|
|
225
|
+
23,
|
|
257
226
|
"Events that should trigger this step to become checked off. If empty or not defined, the step will check off when any of the step's buttons or links are clicked; if the step has no buttons or links it will check on when it is selected."
|
|
258
227
|
)),
|
|
259
228
|
type: 'array',
|
|
@@ -263,8 +232,8 @@ const walkthroughsExtensionPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
|
263
232
|
{
|
|
264
233
|
label: 'onCommand',
|
|
265
234
|
description: ( localizeWithPath(
|
|
266
|
-
|
|
267
|
-
|
|
235
|
+
_moduleId,
|
|
236
|
+
24,
|
|
268
237
|
'Check off step when a given command is executed anywhere in VS Code.'
|
|
269
238
|
)),
|
|
270
239
|
body: 'onCommand:${1:commandId}'
|
|
@@ -272,69 +241,49 @@ const walkthroughsExtensionPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
|
272
241
|
{
|
|
273
242
|
label: 'onLink',
|
|
274
243
|
description: ( localizeWithPath(
|
|
275
|
-
|
|
276
|
-
|
|
244
|
+
_moduleId,
|
|
245
|
+
25,
|
|
277
246
|
'Check off step when a given link is opened via a walkthrough step.'
|
|
278
247
|
)),
|
|
279
248
|
body: 'onLink:${2:linkId}'
|
|
280
249
|
},
|
|
281
250
|
{
|
|
282
251
|
label: 'onView',
|
|
283
|
-
description: ( localizeWithPath(
|
|
284
|
-
'vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedExtensionPoint',
|
|
285
|
-
'walkthroughs.steps.completionEvents.onView',
|
|
286
|
-
'Check off step when a given view is opened'
|
|
287
|
-
)),
|
|
252
|
+
description: ( localizeWithPath(_moduleId, 26, 'Check off step when a given view is opened')),
|
|
288
253
|
body: 'onView:${2:viewId}'
|
|
289
254
|
},
|
|
290
255
|
{
|
|
291
256
|
label: 'onSettingChanged',
|
|
292
|
-
description: ( localizeWithPath(
|
|
293
|
-
'vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedExtensionPoint',
|
|
294
|
-
'walkthroughs.steps.completionEvents.onSettingChanged',
|
|
295
|
-
'Check off step when a given setting is changed'
|
|
296
|
-
)),
|
|
257
|
+
description: ( localizeWithPath(_moduleId, 27, 'Check off step when a given setting is changed')),
|
|
297
258
|
body: 'onSettingChanged:${2:settingName}'
|
|
298
259
|
},
|
|
299
260
|
{
|
|
300
261
|
label: 'onContext',
|
|
301
|
-
description: ( localizeWithPath(
|
|
302
|
-
'vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedExtensionPoint',
|
|
303
|
-
'walkthroughs.steps.completionEvents.onContext',
|
|
304
|
-
'Check off step when a context key expression is true.'
|
|
305
|
-
)),
|
|
262
|
+
description: ( localizeWithPath(_moduleId, 28, 'Check off step when a context key expression is true.')),
|
|
306
263
|
body: 'onContext:${2:key}'
|
|
307
264
|
},
|
|
308
265
|
{
|
|
309
266
|
label: 'onExtensionInstalled',
|
|
310
267
|
description: ( localizeWithPath(
|
|
311
|
-
|
|
312
|
-
|
|
268
|
+
_moduleId,
|
|
269
|
+
29,
|
|
313
270
|
'Check off step when an extension with the given id is installed. If the extension is already installed, the step will start off checked.'
|
|
314
271
|
)),
|
|
315
272
|
body: 'onExtensionInstalled:${3:extensionId}'
|
|
316
273
|
},
|
|
317
274
|
{
|
|
318
275
|
label: 'onStepSelected',
|
|
319
|
-
description: ( localizeWithPath(
|
|
320
|
-
'vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedExtensionPoint',
|
|
321
|
-
'walkthroughs.steps.completionEvents.stepSelected',
|
|
322
|
-
'Check off step as soon as it is selected.'
|
|
323
|
-
)),
|
|
276
|
+
description: ( localizeWithPath(_moduleId, 30, 'Check off step as soon as it is selected.')),
|
|
324
277
|
body: 'onStepSelected'
|
|
325
278
|
},
|
|
326
279
|
]
|
|
327
280
|
}
|
|
328
281
|
},
|
|
329
282
|
doneOn: {
|
|
330
|
-
description: ( localizeWithPath(
|
|
331
|
-
'vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedExtensionPoint',
|
|
332
|
-
'walkthroughs.steps.doneOn',
|
|
333
|
-
"Signal to mark step as complete."
|
|
334
|
-
)),
|
|
283
|
+
description: ( localizeWithPath(_moduleId, 31, "Signal to mark step as complete.")),
|
|
335
284
|
deprecationMessage: ( localizeWithPath(
|
|
336
|
-
|
|
337
|
-
|
|
285
|
+
_moduleId,
|
|
286
|
+
32,
|
|
338
287
|
"doneOn is deprecated. By default steps will be checked off when their buttons are clicked, to configure further use completionEvents"
|
|
339
288
|
)),
|
|
340
289
|
type: 'object',
|
|
@@ -342,11 +291,7 @@ const walkthroughsExtensionPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
|
342
291
|
defaultSnippets: [{ 'body': { command: '$1' } }],
|
|
343
292
|
properties: {
|
|
344
293
|
'command': {
|
|
345
|
-
description: ( localizeWithPath(
|
|
346
|
-
'vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedExtensionPoint',
|
|
347
|
-
'walkthroughs.steps.oneOn.command',
|
|
348
|
-
"Mark step done when the specified command is executed."
|
|
349
|
-
)),
|
|
294
|
+
description: ( localizeWithPath(_moduleId, 33, "Mark step done when the specified command is executed.")),
|
|
350
295
|
type: 'string'
|
|
351
296
|
}
|
|
352
297
|
},
|
|
@@ -354,8 +299,8 @@ const walkthroughsExtensionPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
|
354
299
|
when: {
|
|
355
300
|
type: 'string',
|
|
356
301
|
description: ( localizeWithPath(
|
|
357
|
-
|
|
358
|
-
|
|
302
|
+
_moduleId,
|
|
303
|
+
34,
|
|
359
304
|
"Context key expression to control the visibility of this step."
|
|
360
305
|
))
|
|
361
306
|
}
|
package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedIcons.js
CHANGED
|
@@ -2,14 +2,15 @@ import { localizeWithPath } from 'vscode/vscode/vs/nls';
|
|
|
2
2
|
import { Codicon } from 'vscode/vscode/vs/base/common/codicons';
|
|
3
3
|
import { registerIcon } from 'vscode/vscode/vs/platform/theme/common/iconRegistry';
|
|
4
4
|
|
|
5
|
+
const _moduleId = "vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedIcons";
|
|
5
6
|
const gettingStartedUncheckedCodicon = registerIcon('getting-started-step-unchecked', Codicon.circleLargeOutline, ( localizeWithPath(
|
|
6
|
-
|
|
7
|
-
|
|
7
|
+
_moduleId,
|
|
8
|
+
0,
|
|
8
9
|
"Used to represent walkthrough steps which have not been completed"
|
|
9
10
|
)));
|
|
10
11
|
const gettingStartedCheckedCodicon = registerIcon('getting-started-step-checked', Codicon.passFilled, ( localizeWithPath(
|
|
11
|
-
|
|
12
|
-
|
|
12
|
+
_moduleId,
|
|
13
|
+
1,
|
|
13
14
|
"Used to represent walkthrough steps which have been completed"
|
|
14
15
|
)));
|
|
15
16
|
|
package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedInput.js
CHANGED
|
@@ -4,10 +4,11 @@ import { EditorInput } from 'vscode/vscode/vs/workbench/common/editor/editorInpu
|
|
|
4
4
|
import { URI } from 'vscode/vscode/vs/base/common/uri';
|
|
5
5
|
import { Schemas } from 'vscode/vscode/vs/base/common/network';
|
|
6
6
|
|
|
7
|
+
const _moduleId = "vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedInput";
|
|
7
8
|
const gettingStartedInputTypeId = 'workbench.editors.gettingStartedInput';
|
|
8
9
|
class GettingStartedInput extends EditorInput {
|
|
9
10
|
static { this.ID = gettingStartedInputTypeId; }
|
|
10
|
-
static { this.RESOURCE = ( URI.from({ scheme: Schemas.walkThrough, authority: 'vscode_getting_started_page' })); }
|
|
11
|
+
static { this.RESOURCE = ( (URI.from({ scheme: Schemas.walkThrough, authority: 'vscode_getting_started_page' }))); }
|
|
11
12
|
get typeId() {
|
|
12
13
|
return GettingStartedInput.ID;
|
|
13
14
|
}
|
|
@@ -42,11 +43,7 @@ class GettingStartedInput extends EditorInput {
|
|
|
42
43
|
this.showTelemetryNotice = !!options.showTelemetryNotice;
|
|
43
44
|
}
|
|
44
45
|
getName() {
|
|
45
|
-
return ( localizeWithPath(
|
|
46
|
-
'vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedInput',
|
|
47
|
-
'getStarted',
|
|
48
|
-
"Welcome"
|
|
49
|
-
));
|
|
46
|
+
return ( localizeWithPath(_moduleId, 0, "Welcome"));
|
|
50
47
|
}
|
|
51
48
|
}
|
|
52
49
|
|