@codingame/monaco-vscode-walkthrough-service-override 15.0.3 → 16.0.1
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 +14 -10
- package/vscode/src/vs/workbench/browser/media/code-icon.svg +1 -0
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.contribution.js +27 -25
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.js +44 -37
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedAccessibleView.js +3 -3
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedColors.js +7 -7
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedDetailsRenderer.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedDetailsRenderer.js +2 -2
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedExtensionPoint.js +37 -37
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedIcons.js +2 -2
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedService._contribution.js +3 -3
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedService.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedService.js +10 -4
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/media/gettingStarted.css +831 -0
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/startupPage.js +3 -6
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/common/gettingStartedContent.js +156 -156
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/common/media/all.png.js +4 -4
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/common/media/all.svg.js +18 -18
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/common/media/notebookProfile.js +3 -3
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/common/media/theme_picker.js +5 -5
- package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/editor/editorWalkThrough.js +3 -3
- package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/media/walkThroughPart.css +136 -0
- package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/walkThrough.contribution.js +2 -2
- package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/walkThroughPart.js +3 -3
- package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/common/walkThroughUtils.js +1 -1
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/media/gettingStarted.css.js +0 -6
- package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/media/walkThroughPart.css.js +0 -6
- /package/{assets → vscode/src/vs/workbench/contrib/welcomeGettingStarted/common/media}/commandPalette.svg +0 -0
- /package/{assets → vscode/src/vs/workbench/contrib/welcomeGettingStarted/common/media}/dark-hc.png +0 -0
- /package/{assets → vscode/src/vs/workbench/contrib/welcomeGettingStarted/common/media}/dark.png +0 -0
- /package/{assets → vscode/src/vs/workbench/contrib/welcomeGettingStarted/common/media}/debug.svg +0 -0
- /package/{assets → vscode/src/vs/workbench/contrib/welcomeGettingStarted/common/media}/extensions-web.svg +0 -0
- /package/{assets → vscode/src/vs/workbench/contrib/welcomeGettingStarted/common/media}/extensions.svg +0 -0
- /package/{assets → vscode/src/vs/workbench/contrib/welcomeGettingStarted/common/media}/git.svg +0 -0
- /package/{assets → vscode/src/vs/workbench/contrib/welcomeGettingStarted/common/media}/languages.svg +0 -0
- /package/{assets → vscode/src/vs/workbench/contrib/welcomeGettingStarted/common/media}/learn.svg +0 -0
- /package/{assets → vscode/src/vs/workbench/contrib/welcomeGettingStarted/common/media}/light-hc.png +0 -0
- /package/{assets → vscode/src/vs/workbench/contrib/welcomeGettingStarted/common/media}/light.png +0 -0
- /package/{assets → vscode/src/vs/workbench/contrib/welcomeGettingStarted/common/media}/menuBar.svg +0 -0
- /package/{assets → vscode/src/vs/workbench/contrib/welcomeGettingStarted/common/media}/multi-file-edits.svg +0 -0
- /package/{assets → vscode/src/vs/workbench/contrib/welcomeGettingStarted/common/media}/openFolder.svg +0 -0
- /package/{assets → vscode/src/vs/workbench/contrib/welcomeGettingStarted/common/media}/profiles.svg +0 -0
- /package/{assets → vscode/src/vs/workbench/contrib/welcomeGettingStarted/common/media}/runTask.svg +0 -0
- /package/{assets → vscode/src/vs/workbench/contrib/welcomeGettingStarted/common/media}/search.svg +0 -0
- /package/{assets → vscode/src/vs/workbench/contrib/welcomeGettingStarted/common/media}/settings.svg +0 -0
- /package/{assets → vscode/src/vs/workbench/contrib/welcomeGettingStarted/common/media}/settingsSync.svg +0 -0
- /package/{assets → vscode/src/vs/workbench/contrib/welcomeGettingStarted/common/media}/shortcuts.svg +0 -0
- /package/{assets → vscode/src/vs/workbench/contrib/welcomeGettingStarted/common/media}/terminal.svg +0 -0
- /package/{assets → vscode/src/vs/workbench/contrib/welcomeGettingStarted/common/media}/workspaceTrust.svg +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-walkthrough-service-override",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "16.0.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - walkthrough service-override",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,15 +15,16 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-12c5f9eb-72d3-57ca-babd-5bef7aa9de3b-common": "
|
|
19
|
-
"@codingame/monaco-vscode-5e324391-11e3-5ceb-93ee-938e4098e4ad-common": "
|
|
20
|
-
"@codingame/monaco-vscode-
|
|
21
|
-
"@codingame/monaco-vscode-
|
|
22
|
-
"@codingame/monaco-vscode-
|
|
23
|
-
"@codingame/monaco-vscode-
|
|
24
|
-
"@codingame/monaco-vscode-
|
|
25
|
-
"@codingame/monaco-vscode-aff8bc9b-c6f8-578f-9c8a-f70d14f9c13c-common": "
|
|
26
|
-
"@codingame/monaco-vscode-api": "
|
|
18
|
+
"@codingame/monaco-vscode-12c5f9eb-72d3-57ca-babd-5bef7aa9de3b-common": "16.0.1",
|
|
19
|
+
"@codingame/monaco-vscode-5e324391-11e3-5ceb-93ee-938e4098e4ad-common": "16.0.1",
|
|
20
|
+
"@codingame/monaco-vscode-68b3311c-eb96-5711-8f72-f5f4b2e31932-common": "16.0.1",
|
|
21
|
+
"@codingame/monaco-vscode-7559b0be-bfa5-5fe6-b731-1973fe9fffa1-common": "16.0.1",
|
|
22
|
+
"@codingame/monaco-vscode-7ba0af96-90c2-5e11-ad7f-befdbbf246c8-common": "16.0.1",
|
|
23
|
+
"@codingame/monaco-vscode-7bbc9e7d-eeae-55fc-8bf9-dc2f66e0dc73-common": "16.0.1",
|
|
24
|
+
"@codingame/monaco-vscode-9d0168a3-519b-57f3-9bcc-89efc41f951a-common": "16.0.1",
|
|
25
|
+
"@codingame/monaco-vscode-aff8bc9b-c6f8-578f-9c8a-f70d14f9c13c-common": "16.0.1",
|
|
26
|
+
"@codingame/monaco-vscode-api": "16.0.1",
|
|
27
|
+
"@codingame/monaco-vscode-b1110435-a331-5549-ab1e-aa3d763c3a1f-common": "16.0.1",
|
|
27
28
|
"marked": "14.0.0"
|
|
28
29
|
},
|
|
29
30
|
"main": "index.js",
|
|
@@ -33,6 +34,9 @@
|
|
|
33
34
|
".": {
|
|
34
35
|
"default": "./index.js"
|
|
35
36
|
},
|
|
37
|
+
"./vscode/*.css": {
|
|
38
|
+
"default": "./vscode/src/*.css"
|
|
39
|
+
},
|
|
36
40
|
"./vscode/*": {
|
|
37
41
|
"types": "./vscode/src/*.d.ts",
|
|
38
42
|
"default": "./vscode/src/*.js"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg id="Layer_1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024"><style>.st0{fill:#f6f6f6;fill-opacity:0}.st1{fill:#fff}.st2{fill:#167abf}</style><path class="st0" d="M1024 1024H0V0h1024v1024z"/><path class="st1" d="M1024 85.333v853.333H0V85.333h1024z"/><path class="st2" d="M0 85.333h298.667v853.333H0V85.333zm1024 0v853.333H384V85.333h640zm-554.667 160h341.333v-64H469.333v64zm341.334 533.334H469.333v64h341.333l.001-64zm128-149.334H597.333v64h341.333l.001-64zm0-149.333H597.333v64h341.333l.001-64zm0-149.333H597.333v64h341.333l.001-64z"/></svg>
|
package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.contribution.js
CHANGED
|
@@ -40,7 +40,7 @@ registerAction2(class extends Action2 {
|
|
|
40
40
|
constructor() {
|
|
41
41
|
super({
|
|
42
42
|
id: 'workbench.action.openWalkthrough',
|
|
43
|
-
title: ( localize2(
|
|
43
|
+
title: ( localize2(11377, 'Welcome')),
|
|
44
44
|
category: Categories.Help,
|
|
45
45
|
f1: true,
|
|
46
46
|
menu: {
|
|
@@ -49,15 +49,17 @@ registerAction2(class extends Action2 {
|
|
|
49
49
|
order: 1,
|
|
50
50
|
},
|
|
51
51
|
metadata: {
|
|
52
|
-
description: ( localize2(
|
|
52
|
+
description: ( localize2(11378, 'Opens a Walkthrough to help you get started in VS Code.'))
|
|
53
53
|
}
|
|
54
54
|
});
|
|
55
55
|
}
|
|
56
|
-
run(accessor, walkthroughID,
|
|
56
|
+
run(accessor, walkthroughID, optionsOrToSide) {
|
|
57
57
|
const editorGroupsService = accessor.get(IEditorGroupsService);
|
|
58
58
|
const instantiationService = accessor.get(IInstantiationService);
|
|
59
59
|
const editorService = accessor.get(IEditorService);
|
|
60
60
|
const commandService = accessor.get(ICommandService);
|
|
61
|
+
const toSide = typeof optionsOrToSide === 'object' ? optionsOrToSide.toSide : optionsOrToSide;
|
|
62
|
+
const inactive = typeof optionsOrToSide === 'object' ? optionsOrToSide.inactive : false;
|
|
61
63
|
if (walkthroughID) {
|
|
62
64
|
const selectedCategory = typeof walkthroughID === 'string' ? walkthroughID : walkthroughID.category;
|
|
63
65
|
let selectedStep;
|
|
@@ -70,7 +72,7 @@ registerAction2(class extends Action2 {
|
|
|
70
72
|
if (!selectedCategory && !selectedStep) {
|
|
71
73
|
editorService.openEditor({
|
|
72
74
|
resource: GettingStartedInput.RESOURCE,
|
|
73
|
-
options: { preserveFocus: toSide ?? false }
|
|
75
|
+
options: { preserveFocus: toSide ?? false, inactive }
|
|
74
76
|
}, toSide ? SIDE_GROUP : undefined);
|
|
75
77
|
return;
|
|
76
78
|
}
|
|
@@ -90,7 +92,7 @@ registerAction2(class extends Action2 {
|
|
|
90
92
|
editor.selectedCategory = selectedCategory;
|
|
91
93
|
editor.selectedStep = selectedStep;
|
|
92
94
|
editor.showWelcome = false;
|
|
93
|
-
group.openEditor(editor, { revealIfOpened: true });
|
|
95
|
+
group.openEditor(editor, { revealIfOpened: true, inactive });
|
|
94
96
|
return;
|
|
95
97
|
}
|
|
96
98
|
}
|
|
@@ -109,7 +111,7 @@ registerAction2(class extends Action2 {
|
|
|
109
111
|
}]);
|
|
110
112
|
}
|
|
111
113
|
else {
|
|
112
|
-
const options = { selectedCategory: selectedCategory, selectedStep: selectedStep, showWelcome: false, preserveFocus: toSide ?? false };
|
|
114
|
+
const options = { selectedCategory: selectedCategory, selectedStep: selectedStep, showWelcome: false, preserveFocus: toSide ?? false, inactive };
|
|
113
115
|
editorService.openEditor({
|
|
114
116
|
resource: GettingStartedInput.RESOURCE,
|
|
115
117
|
options
|
|
@@ -121,21 +123,21 @@ registerAction2(class extends Action2 {
|
|
|
121
123
|
else {
|
|
122
124
|
editorService.openEditor({
|
|
123
125
|
resource: GettingStartedInput.RESOURCE,
|
|
124
|
-
options: { preserveFocus: toSide ?? false }
|
|
126
|
+
options: { preserveFocus: toSide ?? false, inactive }
|
|
125
127
|
}, toSide ? SIDE_GROUP : undefined);
|
|
126
128
|
}
|
|
127
129
|
}
|
|
128
130
|
});
|
|
129
131
|
( Registry.as(EditorExtensions.EditorFactory)).registerEditorSerializer(GettingStartedInput.ID, GettingStartedInputSerializer);
|
|
130
|
-
( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(EditorPaneDescriptor.create(GettingStartedPage, GettingStartedPage.ID, ( localize(
|
|
132
|
+
( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(EditorPaneDescriptor.create(GettingStartedPage, GettingStartedPage.ID, ( localize(11379, "Welcome"))), [
|
|
131
133
|
( new SyncDescriptor(GettingStartedInput))
|
|
132
134
|
]);
|
|
133
|
-
const category = ( localize2(
|
|
135
|
+
const category = ( localize2(11379, "Welcome"));
|
|
134
136
|
registerAction2(class extends Action2 {
|
|
135
137
|
constructor() {
|
|
136
138
|
super({
|
|
137
139
|
id: 'welcome.goBack',
|
|
138
|
-
title: ( localize2(
|
|
140
|
+
title: ( localize2(11380, 'Go Back')),
|
|
139
141
|
category,
|
|
140
142
|
keybinding: {
|
|
141
143
|
weight: KeybindingWeight.EditorContrib,
|
|
@@ -171,7 +173,7 @@ registerAction2(class extends Action2 {
|
|
|
171
173
|
constructor() {
|
|
172
174
|
super({
|
|
173
175
|
id: 'welcome.markStepComplete',
|
|
174
|
-
title: ( localize(
|
|
176
|
+
title: ( localize(11381, "Mark Step Complete")),
|
|
175
177
|
category,
|
|
176
178
|
});
|
|
177
179
|
}
|
|
@@ -187,7 +189,7 @@ registerAction2(class extends Action2 {
|
|
|
187
189
|
constructor() {
|
|
188
190
|
super({
|
|
189
191
|
id: 'welcome.markStepIncomplete',
|
|
190
|
-
title: ( localize(
|
|
192
|
+
title: ( localize(11382, "Mark Step Incomplete")),
|
|
191
193
|
category,
|
|
192
194
|
});
|
|
193
195
|
}
|
|
@@ -203,7 +205,7 @@ registerAction2(class extends Action2 {
|
|
|
203
205
|
constructor() {
|
|
204
206
|
super({
|
|
205
207
|
id: 'welcome.showAllWalkthroughs',
|
|
206
|
-
title: ( localize2(
|
|
208
|
+
title: ( localize2(11383, 'Open Walkthrough...')),
|
|
207
209
|
category,
|
|
208
210
|
f1: true,
|
|
209
211
|
});
|
|
@@ -230,7 +232,7 @@ registerAction2(class extends Action2 {
|
|
|
230
232
|
quickPick.canSelectMany = false;
|
|
231
233
|
quickPick.matchOnDescription = true;
|
|
232
234
|
quickPick.matchOnDetail = true;
|
|
233
|
-
quickPick.placeholder = ( localize(
|
|
235
|
+
quickPick.placeholder = ( localize(11384, 'Select a walkthrough to open'));
|
|
234
236
|
quickPick.items = await this.getQuickPickItems(contextService, gettingStartedService);
|
|
235
237
|
quickPick.busy = true;
|
|
236
238
|
disposables.add(quickPick.onDidAccept(() => {
|
|
@@ -250,7 +252,7 @@ registerAction2(class extends Action2 {
|
|
|
250
252
|
}
|
|
251
253
|
});
|
|
252
254
|
const WorkspacePlatform = ( new RawContextKey('workspacePlatform', undefined, ( localize(
|
|
253
|
-
|
|
255
|
+
11385,
|
|
254
256
|
"The platform of the current workspace, which in remote or serverless contexts may be different from the platform of the UI"
|
|
255
257
|
))));
|
|
256
258
|
let WorkspacePlatformContribution = class WorkspacePlatformContribution {
|
|
@@ -302,7 +304,7 @@ configurationRegistry.registerConfiguration({
|
|
|
302
304
|
type: 'boolean',
|
|
303
305
|
default: true,
|
|
304
306
|
description: ( localize(
|
|
305
|
-
|
|
307
|
+
11386,
|
|
306
308
|
"When enabled, an extension's walkthrough will open upon install of the extension."
|
|
307
309
|
))
|
|
308
310
|
},
|
|
@@ -311,25 +313,25 @@ configurationRegistry.registerConfiguration({
|
|
|
311
313
|
'type': 'string',
|
|
312
314
|
'enum': ['none', 'welcomePage', 'readme', 'newUntitledFile', 'welcomePageInEmptyWorkbench', 'terminal'],
|
|
313
315
|
'enumDescriptions': [
|
|
314
|
-
( localize(
|
|
316
|
+
( localize(11387, "Start without an editor.")),
|
|
315
317
|
( localize(
|
|
316
|
-
|
|
318
|
+
11388,
|
|
317
319
|
"Open the Welcome page, with content to aid in getting started with VS Code and extensions."
|
|
318
320
|
)),
|
|
319
321
|
( localize(
|
|
320
|
-
|
|
322
|
+
11389,
|
|
321
323
|
"Open the README when opening a folder that contains one, fallback to 'welcomePage' otherwise. Note: This is only observed as a global configuration, it will be ignored if set in a workspace or folder configuration."
|
|
322
324
|
)),
|
|
323
325
|
( localize(
|
|
324
|
-
|
|
326
|
+
11390,
|
|
325
327
|
"Open a new untitled text file (only applies when opening an empty window)."
|
|
326
328
|
)),
|
|
327
|
-
( localize(
|
|
328
|
-
( localize(
|
|
329
|
+
( localize(11391, "Open the Welcome page when opening an empty workbench.")),
|
|
330
|
+
( localize(11392, "Open a new terminal in the editor area.")),
|
|
329
331
|
],
|
|
330
332
|
'default': 'welcomePage',
|
|
331
333
|
'description': ( localize(
|
|
332
|
-
|
|
334
|
+
11393,
|
|
333
335
|
"Controls which editor is shown at startup, if none are restored from the previous session."
|
|
334
336
|
))
|
|
335
337
|
},
|
|
@@ -337,8 +339,8 @@ configurationRegistry.registerConfiguration({
|
|
|
337
339
|
scope: ConfigurationScope.APPLICATION,
|
|
338
340
|
type: 'boolean',
|
|
339
341
|
default: false,
|
|
340
|
-
deprecationMessage: ( localize(
|
|
341
|
-
description: ( localize(
|
|
342
|
+
deprecationMessage: ( localize(11394, "Deprecated, use the global `workbench.reduceMotion`.")),
|
|
343
|
+
description: ( localize(11395, "When enabled, reduce motion in welcome page."))
|
|
342
344
|
}
|
|
343
345
|
}
|
|
344
346
|
});
|
|
@@ -21,7 +21,7 @@ import { ThemeIcon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/th
|
|
|
21
21
|
import { assertIsDefined } from '@codingame/monaco-vscode-api/vscode/vs/base/common/types';
|
|
22
22
|
import { URI } from '@codingame/monaco-vscode-api/vscode/vs/base/common/uri';
|
|
23
23
|
import { generateUuid } from '@codingame/monaco-vscode-api/vscode/vs/base/common/uuid';
|
|
24
|
-
import './media/gettingStarted.css
|
|
24
|
+
import './media/gettingStarted.css';
|
|
25
25
|
import { ILanguageService } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/languages/language.service';
|
|
26
26
|
import { MarkdownRenderer } from '@codingame/monaco-vscode-api/vscode/vs/editor/browser/widget/markdownRenderer/browser/markdownRenderer';
|
|
27
27
|
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
@@ -52,7 +52,7 @@ import { IWorkspaceContextService } from '@codingame/monaco-vscode-api/vscode/vs
|
|
|
52
52
|
import { isRecentFolder, isRecentWorkspace } from '@codingame/monaco-vscode-7559b0be-bfa5-5fe6-b731-1973fe9fffa1-common/vscode/vs/platform/workspaces/common/workspaces';
|
|
53
53
|
import { IWorkspacesService } from '@codingame/monaco-vscode-api/vscode/vs/platform/workspaces/common/workspaces.service';
|
|
54
54
|
import { OpenRecentAction } from '@codingame/monaco-vscode-7559b0be-bfa5-5fe6-b731-1973fe9fffa1-common/vscode/vs/workbench/browser/actions/windowActions';
|
|
55
|
-
import { OpenFolderViaWorkspaceAction, OpenFileFolderAction, OpenFolderAction } from '@codingame/monaco-vscode-
|
|
55
|
+
import { OpenFolderViaWorkspaceAction, OpenFileFolderAction, OpenFolderAction } from '@codingame/monaco-vscode-68b3311c-eb96-5711-8f72-f5f4b2e31932-common/vscode/vs/workbench/browser/actions/workspaceActions';
|
|
56
56
|
import { EditorPane } from '@codingame/monaco-vscode-12c5f9eb-72d3-57ca-babd-5bef7aa9de3b-common/vscode/vs/workbench/browser/parts/editor/editorPane';
|
|
57
57
|
import { WorkbenchStateContext } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/contextkeys';
|
|
58
58
|
import { IWebviewService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/webview/browser/webview.service';
|
|
@@ -129,7 +129,7 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
129
129
|
this.container = $('.gettingStartedContainer', {
|
|
130
130
|
role: 'document',
|
|
131
131
|
tabindex: 0,
|
|
132
|
-
'aria-label': ( localize(
|
|
132
|
+
'aria-label': ( localize(11396, "Overview of how to get up to speed with your editor."))
|
|
133
133
|
});
|
|
134
134
|
this.stepMediaComponent = $('.getting-started-media');
|
|
135
135
|
this.stepMediaComponent.id = generateUuid();
|
|
@@ -205,12 +205,14 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
205
205
|
badgeelement.parentElement?.setAttribute('aria-checked', 'true');
|
|
206
206
|
badgeelement.classList.remove(...ThemeIcon.asClassNameArray(gettingStartedUncheckedCodicon));
|
|
207
207
|
badgeelement.classList.add('complete', ...ThemeIcon.asClassNameArray(gettingStartedCheckedCodicon));
|
|
208
|
+
badgeelement.setAttribute('aria-label', ( localize(11397, "Checkbox for Step {0}: Completed", step.title)));
|
|
208
209
|
}
|
|
209
210
|
else {
|
|
210
211
|
badgeelement.setAttribute('aria-checked', 'false');
|
|
211
212
|
badgeelement.parentElement?.setAttribute('aria-checked', 'false');
|
|
212
213
|
badgeelement.classList.remove('complete', ...ThemeIcon.asClassNameArray(gettingStartedCheckedCodicon));
|
|
213
214
|
badgeelement.classList.add(...ThemeIcon.asClassNameArray(gettingStartedUncheckedCodicon));
|
|
215
|
+
badgeelement.setAttribute('aria-label', ( localize(11398, "Checkbox for Step {0}: Not completed", step.title)));
|
|
214
216
|
}
|
|
215
217
|
});
|
|
216
218
|
}
|
|
@@ -411,7 +413,7 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
411
413
|
label: x.title,
|
|
412
414
|
detail: x.description,
|
|
413
415
|
description: x.source,
|
|
414
|
-
}))), { canPickMany: false, matchOnDescription: true, matchOnDetail: true, title: ( localize(
|
|
416
|
+
}))), { canPickMany: false, matchOnDescription: true, matchOnDetail: true, title: ( localize(11399, "Open Walkthrough...")) });
|
|
415
417
|
if (selection) {
|
|
416
418
|
this.runDispatchCommand('selectCategory', selection.id);
|
|
417
419
|
}
|
|
@@ -592,7 +594,8 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
592
594
|
const themeType = this.themeService.getColorTheme().type;
|
|
593
595
|
const videoPath = media.path[themeType];
|
|
594
596
|
const videoPoster = media.poster ? media.poster[themeType] : undefined;
|
|
595
|
-
const
|
|
597
|
+
const altText = media.altText ? media.altText : ( localize(11400, "Video for {0}", stepToExpand.title));
|
|
598
|
+
const rawHTML = await this.detailsRenderer.renderVideo(videoPath, videoPoster, altText);
|
|
596
599
|
this.webview.setHtml(rawHTML);
|
|
597
600
|
let isDisposed = false;
|
|
598
601
|
this.stepDisposables.add(toDisposable(() => { isDisposed = true; }));
|
|
@@ -600,7 +603,7 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
600
603
|
const themeType = this.themeService.getColorTheme().type;
|
|
601
604
|
const videoPath = media.path[themeType];
|
|
602
605
|
const videoPoster = media.poster ? media.poster[themeType] : undefined;
|
|
603
|
-
const body = await this.detailsRenderer.renderVideo(videoPath, videoPoster);
|
|
606
|
+
const body = await this.detailsRenderer.renderVideo(videoPath, videoPoster, altText);
|
|
604
607
|
if (!isDisposed) {
|
|
605
608
|
this.webview.setHtml(body);
|
|
606
609
|
}
|
|
@@ -619,8 +622,8 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
619
622
|
provideScreenReaderUpdate() {
|
|
620
623
|
if (this.configurationService.getValue(AccessibilityVerbositySettingId.Walkthrough)) {
|
|
621
624
|
const kbLabel = this.keybindingService.lookupKeybinding(AccessibleViewAction.id)?.getAriaLabel();
|
|
622
|
-
return kbLabel ? ( localize(
|
|
623
|
-
|
|
625
|
+
return kbLabel ? ( localize(11401, "Inspect this in the accessible view ({0}).\n", kbLabel)) : ( localize(
|
|
626
|
+
11402,
|
|
624
627
|
"Inspect this in the accessible view via the command Open Accessible View which is currently not triggerable via keybinding.\n"
|
|
625
628
|
));
|
|
626
629
|
}
|
|
@@ -680,7 +683,7 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
680
683
|
this.categoriesPageScrollbar.dispose();
|
|
681
684
|
}
|
|
682
685
|
this.categoriesSlide = $('.gettingStartedSlideCategories.gettingStartedSlide');
|
|
683
|
-
const prevButton = $('button.prev-button.button-link', { 'x-dispatch': 'scrollPrev' }, $('span.scroll-button.codicon.codicon-chevron-left'), $('span.moreText', {}, ( localize(
|
|
686
|
+
const prevButton = $('button.prev-button.button-link', { 'x-dispatch': 'scrollPrev' }, $('span.scroll-button.codicon.codicon-chevron-left'), $('span.moreText', {}, ( localize(11403, "Go Back"))));
|
|
684
687
|
this.stepsSlide = $('.gettingStartedSlideDetails.gettingStartedSlide', {}, prevButton);
|
|
685
688
|
this.stepsContent = $('.gettingStartedDetailsContent', {});
|
|
686
689
|
this.detailsPageScrollbar = this._register(( new DomScrollableElement(
|
|
@@ -704,11 +707,11 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
704
707
|
icon: Codicon.check,
|
|
705
708
|
actionClassName: 'getting-started-checkbox',
|
|
706
709
|
isChecked: this.configurationService.getValue(configurationKey) === 'welcomePage',
|
|
707
|
-
title: ( localize(
|
|
710
|
+
title: ( localize(11404, "When checked, this page will be shown on startup.")),
|
|
708
711
|
...defaultToggleStyles
|
|
709
712
|
}));
|
|
710
713
|
showOnStartupCheckbox.domNode.id = 'showOnStartup';
|
|
711
|
-
const showOnStartupLabel = $('label.caption', { for: 'showOnStartup' }, ( localize(
|
|
714
|
+
const showOnStartupLabel = $('label.caption', { for: 'showOnStartup' }, ( localize(11405, "Show welcome page on startup")));
|
|
712
715
|
const onShowOnStartupChanged = () => {
|
|
713
716
|
if (showOnStartupCheckbox.checked) {
|
|
714
717
|
this.telemetryService.publicLog2('gettingStarted.ActionExecuted', { command: 'showOnStartupChecked', argument: undefined, walkthroughId: this.currentWalkthrough?.id });
|
|
@@ -727,7 +730,7 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
727
730
|
showOnStartupCheckbox.checked = !showOnStartupCheckbox.checked;
|
|
728
731
|
onShowOnStartupChanged();
|
|
729
732
|
}));
|
|
730
|
-
const header = $('.header', {}, $('h1.product-name.caption', {}, this.productService.nameLong), $('p.subtitle.description', {}, ( localize(
|
|
733
|
+
const header = $('.header', {}, $('h1.product-name.caption', {}, this.productService.nameLong), $('p.subtitle.description', {}, ( localize(11406, "Editing evolved"))));
|
|
731
734
|
const leftColumn = $('.categories-column.categories-column-left', {});
|
|
732
735
|
const rightColumn = $('.categories-column.categories-column-right', {});
|
|
733
736
|
const startList = this.buildStartList();
|
|
@@ -822,7 +825,7 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
822
825
|
const link = $('button.button-link');
|
|
823
826
|
link.innerText = name;
|
|
824
827
|
link.title = fullPath;
|
|
825
|
-
link.setAttribute('aria-label', ( localize(
|
|
828
|
+
link.setAttribute('aria-label', ( localize(11407, "Open folder {0} with path {1}", name, parentPath)));
|
|
826
829
|
link.addEventListener('click', e => {
|
|
827
830
|
this.telemetryService.publicLog2('gettingStarted.ActionExecuted', { command: 'openRecent', argument: undefined, walkthroughId: this.currentWalkthrough?.id });
|
|
828
831
|
this.hostService.openWindow([windowOpenable], {
|
|
@@ -845,18 +848,18 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
845
848
|
this.recentlyOpenedList.dispose();
|
|
846
849
|
}
|
|
847
850
|
const recentlyOpenedList = this.recentlyOpenedList = ( new GettingStartedIndexList({
|
|
848
|
-
title: ( localize(
|
|
851
|
+
title: ( localize(11408, "Recent")),
|
|
849
852
|
klass: 'recently-opened',
|
|
850
853
|
limit: 5,
|
|
851
|
-
empty: $('.empty-recent', {}, ( localize(
|
|
854
|
+
empty: $('.empty-recent', {}, ( localize(11409, "You have no recent folders,")), $('button.button-link', { 'x-dispatch': 'openFolder' }, ( localize(11410, "open a folder"))), ( localize(11411, "to start."))),
|
|
852
855
|
more: $('.more', {}, $('button.button-link', {
|
|
853
856
|
'x-dispatch': 'showMoreRecents',
|
|
854
857
|
title: ( localize(
|
|
855
|
-
|
|
858
|
+
11412,
|
|
856
859
|
"Show All Recent Folders {0}",
|
|
857
860
|
this.getKeybindingLabel(OpenRecentAction.ID)
|
|
858
861
|
))
|
|
859
|
-
}, ( localize(
|
|
862
|
+
}, ( localize(11413, "More...")))),
|
|
860
863
|
renderElement: renderRecent,
|
|
861
864
|
contextService: this.contextService
|
|
862
865
|
}));
|
|
@@ -884,7 +887,7 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
884
887
|
this.startList.dispose();
|
|
885
888
|
}
|
|
886
889
|
const startList = this.startList = ( new GettingStartedIndexList({
|
|
887
|
-
title: ( localize(
|
|
890
|
+
title: ( localize(11414, "Start")),
|
|
888
891
|
klass: 'start-container',
|
|
889
892
|
limit: 10,
|
|
890
893
|
renderElement: renderStartEntry,
|
|
@@ -900,10 +903,10 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
900
903
|
const renderNewBadge = (category.newItems || category.newEntry) && !category.isFeatured;
|
|
901
904
|
const newBadge = $('.new-badge', {});
|
|
902
905
|
if (category.newEntry) {
|
|
903
|
-
reset(newBadge, $('.new-category', {}, ( localize(
|
|
906
|
+
reset(newBadge, $('.new-category', {}, ( localize(11415, "New"))));
|
|
904
907
|
}
|
|
905
908
|
else if (category.newItems) {
|
|
906
|
-
reset(newBadge, $('.new-items', {}, ( localize(
|
|
909
|
+
reset(newBadge, $('.new-items', {}, ( localize(11416, "Updated"))));
|
|
907
910
|
}
|
|
908
911
|
const featuredBadge = $('.featured-badge', {});
|
|
909
912
|
const descriptionContent = $('.description-content', {});
|
|
@@ -919,9 +922,9 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
919
922
|
}, featuredBadge, $('.main-content', {}, this.iconWidgetFor(category), titleContent, renderNewBadge ? newBadge : $('.no-badge'), $('a.codicon.codicon-close.hide-category-button', {
|
|
920
923
|
'tabindex': 0,
|
|
921
924
|
'x-dispatch': 'hideCategory:' + category.id,
|
|
922
|
-
'title': ( localize(
|
|
925
|
+
'title': ( localize(11417, "Hide")),
|
|
923
926
|
'role': 'button',
|
|
924
|
-
'aria-label': ( localize(
|
|
927
|
+
'aria-label': ( localize(11418, "Hide")),
|
|
925
928
|
})), descriptionContent, $('.category-progress', { 'x-data-category-id': category.id, }, $('.progress-bar-outer', { 'role': 'progressbar' }, $('.progress-bar-inner'))));
|
|
926
929
|
};
|
|
927
930
|
if (this.gettingStartedList) {
|
|
@@ -947,10 +950,10 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
947
950
|
return rank;
|
|
948
951
|
};
|
|
949
952
|
const gettingStartedList = this.gettingStartedList = ( new GettingStartedIndexList({
|
|
950
|
-
title: ( localize(
|
|
953
|
+
title: ( localize(11419, "Walkthroughs")),
|
|
951
954
|
klass: 'getting-started',
|
|
952
955
|
limit: 5,
|
|
953
|
-
footer: $('span.button-link.see-all-walkthroughs', { 'x-dispatch': 'seeAllWalkthroughs', 'tabindex': 0 }, ( localize(
|
|
956
|
+
footer: $('span.button-link.see-all-walkthroughs', { 'x-dispatch': 'seeAllWalkthroughs', 'tabindex': 0 }, ( localize(11413, "More..."))),
|
|
954
957
|
renderElement: renderGetttingStaredWalkthrough,
|
|
955
958
|
rankElement: rankWalkthrough,
|
|
956
959
|
contextService: this.contextService,
|
|
@@ -982,7 +985,7 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
982
985
|
this.layoutMarkdown?.();
|
|
983
986
|
this.container.classList.toggle('height-constrained', size.height <= 600);
|
|
984
987
|
this.container.classList.toggle('width-constrained', size.width <= 400);
|
|
985
|
-
this.container.classList.toggle('width-semi-constrained', size.width <=
|
|
988
|
+
this.container.classList.toggle('width-semi-constrained', size.width <= 950);
|
|
986
989
|
this.categoriesPageScrollbar?.scanDomNode();
|
|
987
990
|
this.detailsPageScrollbar?.scanDomNode();
|
|
988
991
|
this.detailsScrollbar?.scanDomNode();
|
|
@@ -1003,10 +1006,10 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
1003
1006
|
bar.style.width = `${progress}%`;
|
|
1004
1007
|
element.parentElement.classList.toggle('no-progress', stats.stepsComplete === 0);
|
|
1005
1008
|
if (stats.stepsTotal === stats.stepsComplete) {
|
|
1006
|
-
bar.title = ( localize(
|
|
1009
|
+
bar.title = ( localize(11420, "All {0} steps complete!", stats.stepsComplete));
|
|
1007
1010
|
}
|
|
1008
1011
|
else {
|
|
1009
|
-
bar.title = ( localize(
|
|
1012
|
+
bar.title = ( localize(11421, "{0} of {1} steps complete", stats.stepsComplete, stats.stepsTotal));
|
|
1010
1013
|
}
|
|
1011
1014
|
});
|
|
1012
1015
|
}
|
|
@@ -1129,10 +1132,11 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
1129
1132
|
if (isCommand) {
|
|
1130
1133
|
const keybinding = this.getKeyBinding(command);
|
|
1131
1134
|
if (keybinding) {
|
|
1132
|
-
const shortcutMessage = $('span.shortcut-message', {}, ( localize(
|
|
1135
|
+
const shortcutMessage = $('span.shortcut-message', {}, ( localize(11422, 'Tip: Use keyboard shortcut ')));
|
|
1133
1136
|
container.appendChild(shortcutMessage);
|
|
1134
1137
|
const label = ( new KeybindingLabel(shortcutMessage, OS, { ...defaultKeybindingLabelStyles }));
|
|
1135
1138
|
label.set(keybinding);
|
|
1139
|
+
this.detailsPageDisposables.add(label);
|
|
1136
1140
|
}
|
|
1137
1141
|
}
|
|
1138
1142
|
this.detailsPageDisposables.add(button);
|
|
@@ -1214,7 +1218,10 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
1214
1218
|
'data-done-step-id': step.id,
|
|
1215
1219
|
'x-dispatch': 'toggleStepCompletion:' + step.id,
|
|
1216
1220
|
'role': 'checkbox',
|
|
1217
|
-
'aria-checked': step.done ? 'true' : 'false'
|
|
1221
|
+
'aria-checked': step.done ? 'true' : 'false',
|
|
1222
|
+
'aria-label': step.done
|
|
1223
|
+
? ( localize(11397, "Checkbox for Step {0}: Completed", step.title))
|
|
1224
|
+
: ( localize(11398, "Checkbox for Step {0}: Not completed", step.title)),
|
|
1218
1225
|
});
|
|
1219
1226
|
const container = $('.step-description-container', { 'x-step-description-for': step.id });
|
|
1220
1227
|
this.buildMarkdownDescription(container, step.description);
|
|
@@ -1222,10 +1229,10 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
1222
1229
|
reset(stepTitle, ...renderLabelWithIcons(step.title));
|
|
1223
1230
|
const stepDescription = $('.step-container', {}, stepTitle, container);
|
|
1224
1231
|
if (step.media.type === 'image') {
|
|
1225
|
-
stepDescription.appendChild($('.image-description', { 'aria-label': ( localize(
|
|
1232
|
+
stepDescription.appendChild($('.image-description', { 'aria-label': ( localize(11423, "Image showing {0}", step.media.altText)) }));
|
|
1226
1233
|
}
|
|
1227
1234
|
else if (step.media.type === 'video') {
|
|
1228
|
-
stepDescription.appendChild($('.video-description', { 'aria-label': ( localize(
|
|
1235
|
+
stepDescription.appendChild($('.video-description', { 'aria-label': ( localize(11424, "Video showing {0}", step.media.altText)) }));
|
|
1229
1236
|
}
|
|
1230
1237
|
return $('button.getting-started-step', {
|
|
1231
1238
|
'x-dispatch': 'selectTask:' + step.id,
|
|
@@ -1245,8 +1252,8 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
1245
1252
|
}
|
|
1246
1253
|
}));
|
|
1247
1254
|
const showNextCategory = this.gettingStartedCategories.find(_category => _category.id === category.next);
|
|
1248
|
-
const stepsContainer = $('.getting-started-detail-container', { 'role': 'list' }, stepListContainer, $('.done-next-container', {}, $('button.button-link.all-done', { 'x-dispatch': 'allDone' }, $('span.codicon.codicon-check-all'), ( localize(
|
|
1249
|
-
? [$('button.button-link.next', { 'x-dispatch': 'nextSection' }, ( localize(
|
|
1255
|
+
const stepsContainer = $('.getting-started-detail-container', { 'role': 'list' }, stepListContainer, $('.done-next-container', {}, $('button.button-link.all-done', { 'x-dispatch': 'allDone' }, $('span.codicon.codicon-check-all'), ( localize(11425, "Mark Done"))), ...(showNextCategory
|
|
1256
|
+
? [$('button.button-link.next', { 'x-dispatch': 'nextSection' }, ( localize(11426, "Next Section")), $('span.codicon.codicon-arrow-right'))]
|
|
1250
1257
|
: [])));
|
|
1251
1258
|
this.detailsScrollbar = this._register(( new DomScrollableElement(stepsContainer, { className: 'steps-container' })));
|
|
1252
1259
|
const stepListComponent = this.detailsScrollbar.getDomNode();
|
|
@@ -1263,12 +1270,12 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
1263
1270
|
}
|
|
1264
1271
|
buildTelemetryFooter(parent) {
|
|
1265
1272
|
const mdRenderer = this.instantiationService.createInstance(MarkdownRenderer, {});
|
|
1266
|
-
const privacyStatementCopy = ( localize(
|
|
1273
|
+
const privacyStatementCopy = ( localize(11427, "privacy statement"));
|
|
1267
1274
|
const privacyStatementButton = `[${privacyStatementCopy}](command:workbench.action.openPrivacyStatementUrl)`;
|
|
1268
|
-
const optOutCopy = ( localize(
|
|
1275
|
+
const optOutCopy = ( localize(11428, "opt out"));
|
|
1269
1276
|
const optOutButton = `[${optOutCopy}](command:settings.filterByTelemetry)`;
|
|
1270
1277
|
const text = ( localize(
|
|
1271
|
-
|
|
1278
|
+
11429,
|
|
1272
1279
|
"{0} collects usage data. Read our {1} and learn how to {2}.",
|
|
1273
1280
|
this.productService.nameShort,
|
|
1274
1281
|
privacyStatementButton,
|
|
@@ -1339,7 +1346,7 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
1339
1346
|
const prevButton = this.container.querySelector('.prev-button.button-link');
|
|
1340
1347
|
prevButton.style.display = this.editorInput.showWelcome || this.prevWalkthrough ? 'block' : 'none';
|
|
1341
1348
|
const moreTextElement = prevButton.querySelector('.moreText');
|
|
1342
|
-
moreTextElement.textContent = firstLaunch ? ( localize(
|
|
1349
|
+
moreTextElement.textContent = firstLaunch ? ( localize(11430, "Welcome")) : ( localize(11403, "Go Back"));
|
|
1343
1350
|
this.container.querySelector('.gettingStartedSlideDetails').querySelectorAll('button').forEach(button => button.disabled = false);
|
|
1344
1351
|
this.container.querySelector('.gettingStartedSlideCategories').querySelectorAll('button').forEach(button => button.disabled = true);
|
|
1345
1352
|
this.container.querySelector('.gettingStartedSlideCategories').querySelectorAll('input').forEach(button => button.disabled = true);
|
|
@@ -116,11 +116,11 @@ class GettingStartedAccessibleProvider extends Disposable {
|
|
|
116
116
|
}
|
|
117
117
|
_getContent(waltkrough, step, includeTitle) {
|
|
118
118
|
const description = ( step.description.map(lt => lt.nodes.filter(node => typeof node === 'string'))).join('\n');
|
|
119
|
-
const stepsContent = ( localize(
|
|
119
|
+
const stepsContent = ( localize(11431, '{0}\n{1}', step.title, description));
|
|
120
120
|
if (includeTitle) {
|
|
121
121
|
return [
|
|
122
|
-
( localize(
|
|
123
|
-
( localize(
|
|
122
|
+
( localize(11432, 'Title: {0}', waltkrough.title)),
|
|
123
|
+
( localize(11433, 'Description: {0}', waltkrough.description)),
|
|
124
124
|
stepsContent
|
|
125
125
|
].join('\n');
|
|
126
126
|
}
|
package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedColors.js
CHANGED
|
@@ -12,10 +12,10 @@ import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/quic
|
|
|
12
12
|
import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/searchColors';
|
|
13
13
|
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
14
14
|
|
|
15
|
-
registerColor('welcomePage.background', null, ( localize(
|
|
16
|
-
registerColor('welcomePage.tileBackground', { dark: editorWidgetBackground, light: editorWidgetBackground, hcDark: '#000', hcLight: editorWidgetBackground }, ( localize(
|
|
17
|
-
registerColor('welcomePage.tileHoverBackground', { dark: ( lighten(editorWidgetBackground, .2)), light: ( darken(editorWidgetBackground, .1)), hcDark: null, hcLight: null }, ( localize(
|
|
18
|
-
registerColor('welcomePage.tileBorder', { dark: '#ffffff1a', light: '#0000001a', hcDark: contrastBorder, hcLight: contrastBorder }, ( localize(
|
|
19
|
-
registerColor('welcomePage.progress.background', inputBackground, ( localize(
|
|
20
|
-
registerColor('welcomePage.progress.foreground', textLinkForeground, ( localize(
|
|
21
|
-
registerColor('walkthrough.stepTitle.foreground', { light: '#000000', dark: '#ffffff', hcDark: null, hcLight: null }, ( localize(
|
|
15
|
+
registerColor('welcomePage.background', null, ( localize(11434, 'Background color for the Welcome page.')));
|
|
16
|
+
registerColor('welcomePage.tileBackground', { dark: editorWidgetBackground, light: editorWidgetBackground, hcDark: '#000', hcLight: editorWidgetBackground }, ( localize(11435, '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 }, ( localize(11436, 'Hover background color for the tiles on the Welcome.')));
|
|
18
|
+
registerColor('welcomePage.tileBorder', { dark: '#ffffff1a', light: '#0000001a', hcDark: contrastBorder, hcLight: contrastBorder }, ( localize(11437, 'Border color for the tiles on the Welcome page.')));
|
|
19
|
+
registerColor('welcomePage.progress.background', inputBackground, ( localize(11438, 'Foreground color for the Welcome page progress bars.')));
|
|
20
|
+
registerColor('welcomePage.progress.foreground', textLinkForeground, ( localize(11439, 'Background color for the Welcome page progress bars.')));
|
|
21
|
+
registerColor('walkthrough.stepTitle.foreground', { light: '#000000', dark: '#ffffff', hcDark: null, hcLight: null }, ( localize(11440, 'Foreground color of the heading of each walkthrough step')));
|
|
@@ -13,7 +13,7 @@ export declare class GettingStartedDetailsRenderer {
|
|
|
13
13
|
constructor(fileService: IFileService, notificationService: INotificationService, extensionService: IExtensionService, languageService: ILanguageService);
|
|
14
14
|
renderMarkdown(path: URI, base: URI): Promise<string>;
|
|
15
15
|
renderSVG(path: URI): Promise<string>;
|
|
16
|
-
renderVideo(path: URI, poster?: URI): Promise<string>;
|
|
16
|
+
renderVideo(path: URI, poster?: URI, description?: string): Promise<string>;
|
|
17
17
|
private readAndCacheSVGFile;
|
|
18
18
|
private readAndCacheStepMarkdown;
|
|
19
19
|
private readContentsOfPath;
|
|
@@ -189,7 +189,7 @@ let GettingStartedDetailsRenderer = class GettingStartedDetailsRenderer {
|
|
|
189
189
|
</body>
|
|
190
190
|
</html>`;
|
|
191
191
|
}
|
|
192
|
-
async renderVideo(path, poster) {
|
|
192
|
+
async renderVideo(path, poster, description) {
|
|
193
193
|
const nonce = generateUuid();
|
|
194
194
|
return `<!DOCTYPE html>
|
|
195
195
|
<html>
|
|
@@ -205,7 +205,7 @@ let GettingStartedDetailsRenderer = class GettingStartedDetailsRenderer {
|
|
|
205
205
|
</style>
|
|
206
206
|
</head>
|
|
207
207
|
<body>
|
|
208
|
-
<video controls autoplay ${poster ? `poster="${poster
|
|
208
|
+
<video controls autoplay ${poster ? `poster="${( poster.toString(true))}"` : ''} muted ${description ? `aria-label="${description}"` : ''}>
|
|
209
209
|
<source src="${( path.toString(true))}" type="video/mp4">
|
|
210
210
|
</video>
|
|
211
211
|
</body>
|