@codingame/monaco-vscode-walkthrough-service-override 21.5.1 → 22.0.0
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 +9 -10
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.contribution.js +26 -23
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.js +40 -42
- 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/gettingStartedExtensionPoint.js +39 -39
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedIcons.js +2 -2
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedInput.js +2 -5
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedService._contribution.js +4 -4
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedService.js +2 -2
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/startupPage.js +2 -2
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/common/gettingStartedContent.js +177 -150
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/common/media/notebookProfile.js +8 -7
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/common/media/theme_picker.js +5 -5
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/common/media/theme_picker_small.js +4 -4
- package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/editor/editorWalkThrough.js +3 -3
- package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/walkThrough.contribution.js +3 -3
- package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/walkThroughPart.d.ts +1 -1
- 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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-walkthrough-service-override",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "22.0.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - walkthrough service-override",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,15 +15,14 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-158b9837-fc78-5d9c-86f5-9134e4358643-common": "
|
|
19
|
-
"@codingame/monaco-vscode-
|
|
20
|
-
"@codingame/monaco-vscode-
|
|
21
|
-
"@codingame/monaco-vscode-
|
|
22
|
-
"@codingame/monaco-vscode-
|
|
23
|
-
"@codingame/monaco-vscode-
|
|
24
|
-
"@codingame/monaco-vscode-
|
|
25
|
-
"@codingame/monaco-vscode-
|
|
26
|
-
"@codingame/monaco-vscode-f24e325c-2ce0-5bba-8236-bfc4f53180ab-common": "21.5.1",
|
|
18
|
+
"@codingame/monaco-vscode-158b9837-fc78-5d9c-86f5-9134e4358643-common": "22.0.0",
|
|
19
|
+
"@codingame/monaco-vscode-60014c9d-b815-501d-83a9-4b08725c2ec2-common": "22.0.0",
|
|
20
|
+
"@codingame/monaco-vscode-9d0168a3-519b-57f3-9bcc-89efc41f951a-common": "22.0.0",
|
|
21
|
+
"@codingame/monaco-vscode-a654b07e-8806-5425-b124-18f03ba8e11a-common": "22.0.0",
|
|
22
|
+
"@codingame/monaco-vscode-api": "22.0.0",
|
|
23
|
+
"@codingame/monaco-vscode-b6d52a6d-8c8e-51f5-bcd2-1722295e31d9-common": "22.0.0",
|
|
24
|
+
"@codingame/monaco-vscode-cf77987b-b1b7-5359-aaf8-a259c63d9f03-common": "22.0.0",
|
|
25
|
+
"@codingame/monaco-vscode-f24e325c-2ce0-5bba-8236-bfc4f53180ab-common": "22.0.0",
|
|
27
26
|
"marked": "14.0.0"
|
|
28
27
|
},
|
|
29
28
|
"main": "index.js",
|
package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.contribution.js
CHANGED
|
@@ -11,7 +11,7 @@ import { SIDE_GROUP } from '@codingame/monaco-vscode-api/vscode/vs/workbench/ser
|
|
|
11
11
|
import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
12
12
|
import { KeybindingWeight } from '@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybindingsRegistry';
|
|
13
13
|
import { KeyCode } from '@codingame/monaco-vscode-api/vscode/vs/base/common/keyCodes';
|
|
14
|
-
import { EditorPaneDescriptor } from '@codingame/monaco-vscode-
|
|
14
|
+
import { EditorPaneDescriptor } from '@codingame/monaco-vscode-60014c9d-b815-501d-83a9-4b08725c2ec2-common/vscode/vs/workbench/browser/editor';
|
|
15
15
|
import { SyncDescriptor } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/descriptors';
|
|
16
16
|
import { IWalkthroughsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedService.service';
|
|
17
17
|
import { GettingStartedInput } from './gettingStartedInput.js';
|
|
@@ -37,7 +37,7 @@ registerAction2(class extends Action2 {
|
|
|
37
37
|
constructor() {
|
|
38
38
|
super({
|
|
39
39
|
id: 'workbench.action.openWalkthrough',
|
|
40
|
-
title: ( localize2(
|
|
40
|
+
title: ( localize2(12639, 'Welcome')),
|
|
41
41
|
category: Categories.Help,
|
|
42
42
|
f1: true,
|
|
43
43
|
menu: {
|
|
@@ -46,7 +46,7 @@ registerAction2(class extends Action2 {
|
|
|
46
46
|
order: 1,
|
|
47
47
|
},
|
|
48
48
|
metadata: {
|
|
49
|
-
description: ( localize2(
|
|
49
|
+
description: ( localize2(12640, 'Opens a Walkthrough to help you get started in VS Code.'))
|
|
50
50
|
}
|
|
51
51
|
});
|
|
52
52
|
}
|
|
@@ -54,7 +54,11 @@ registerAction2(class extends Action2 {
|
|
|
54
54
|
const editorService = accessor.get(IEditorService);
|
|
55
55
|
const commandService = accessor.get(ICommandService);
|
|
56
56
|
const toSide = typeof optionsOrToSide === 'object' ? optionsOrToSide.toSide : optionsOrToSide;
|
|
57
|
-
|
|
57
|
+
let inactive = typeof optionsOrToSide === 'object' ? optionsOrToSide.inactive : false;
|
|
58
|
+
const activeEditor = editorService.activeEditor;
|
|
59
|
+
if (!inactive && !toSide && activeEditor instanceof GettingStartedInput) {
|
|
60
|
+
inactive = true;
|
|
61
|
+
}
|
|
58
62
|
if (walkthroughID) {
|
|
59
63
|
const selectedCategory = typeof walkthroughID === 'string' ? walkthroughID : walkthroughID.category;
|
|
60
64
|
let selectedStep;
|
|
@@ -64,7 +68,6 @@ registerAction2(class extends Action2 {
|
|
|
64
68
|
else {
|
|
65
69
|
selectedStep = undefined;
|
|
66
70
|
}
|
|
67
|
-
const activeEditor = editorService.activeEditor;
|
|
68
71
|
if (selectedStep && activeEditor instanceof GettingStartedInput && activeEditor.selectedCategory === selectedCategory) {
|
|
69
72
|
activeEditor.showWelcome = false;
|
|
70
73
|
commandService.executeCommand('walkthroughs.selectStep', selectedStep);
|
|
@@ -91,15 +94,15 @@ registerAction2(class extends Action2 {
|
|
|
91
94
|
}
|
|
92
95
|
});
|
|
93
96
|
( Registry.as(EditorExtensions.EditorFactory)).registerEditorSerializer(GettingStartedInput.ID, GettingStartedInputSerializer);
|
|
94
|
-
( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(EditorPaneDescriptor.create(GettingStartedPage, GettingStartedPage.ID, ( localize(
|
|
97
|
+
( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(EditorPaneDescriptor.create(GettingStartedPage, GettingStartedPage.ID, ( localize(12641, "Welcome"))), [
|
|
95
98
|
( new SyncDescriptor(GettingStartedInput))
|
|
96
99
|
]);
|
|
97
|
-
const category = ( localize2(
|
|
100
|
+
const category = ( localize2(12641, "Welcome"));
|
|
98
101
|
registerAction2(class extends Action2 {
|
|
99
102
|
constructor() {
|
|
100
103
|
super({
|
|
101
104
|
id: 'welcome.goBack',
|
|
102
|
-
title: ( localize2(
|
|
105
|
+
title: ( localize2(12642, 'Go Back')),
|
|
103
106
|
category,
|
|
104
107
|
keybinding: {
|
|
105
108
|
weight: KeybindingWeight.EditorContrib,
|
|
@@ -135,7 +138,7 @@ registerAction2(class extends Action2 {
|
|
|
135
138
|
constructor() {
|
|
136
139
|
super({
|
|
137
140
|
id: 'welcome.markStepComplete',
|
|
138
|
-
title: ( localize(
|
|
141
|
+
title: ( localize(12643, "Mark Step Complete")),
|
|
139
142
|
category,
|
|
140
143
|
});
|
|
141
144
|
}
|
|
@@ -151,7 +154,7 @@ registerAction2(class extends Action2 {
|
|
|
151
154
|
constructor() {
|
|
152
155
|
super({
|
|
153
156
|
id: 'welcome.markStepIncomplete',
|
|
154
|
-
title: ( localize(
|
|
157
|
+
title: ( localize(12644, "Mark Step Incomplete")),
|
|
155
158
|
category,
|
|
156
159
|
});
|
|
157
160
|
}
|
|
@@ -167,7 +170,7 @@ registerAction2(class extends Action2 {
|
|
|
167
170
|
constructor() {
|
|
168
171
|
super({
|
|
169
172
|
id: 'welcome.showAllWalkthroughs',
|
|
170
|
-
title: ( localize2(
|
|
173
|
+
title: ( localize2(12645, 'Open Walkthrough...')),
|
|
171
174
|
category,
|
|
172
175
|
f1: true,
|
|
173
176
|
menu: {
|
|
@@ -199,7 +202,7 @@ registerAction2(class extends Action2 {
|
|
|
199
202
|
quickPick.canSelectMany = false;
|
|
200
203
|
quickPick.matchOnDescription = true;
|
|
201
204
|
quickPick.matchOnDetail = true;
|
|
202
|
-
quickPick.placeholder = ( localize(
|
|
205
|
+
quickPick.placeholder = ( localize(12646, 'Select a walkthrough to open'));
|
|
203
206
|
quickPick.items = await this.getQuickPickItems(contextService, gettingStartedService);
|
|
204
207
|
quickPick.busy = true;
|
|
205
208
|
disposables.add(quickPick.onDidAccept(() => {
|
|
@@ -226,7 +229,7 @@ CommandsRegistry.registerCommand({
|
|
|
226
229
|
}
|
|
227
230
|
});
|
|
228
231
|
const WorkspacePlatform = ( new RawContextKey('workspacePlatform', undefined, ( localize(
|
|
229
|
-
|
|
232
|
+
12647,
|
|
230
233
|
"The platform of the current workspace, which in remote or serverless contexts may be different from the platform of the UI"
|
|
231
234
|
))));
|
|
232
235
|
let WorkspacePlatformContribution = class WorkspacePlatformContribution {
|
|
@@ -278,7 +281,7 @@ configurationRegistry.registerConfiguration({
|
|
|
278
281
|
type: 'boolean',
|
|
279
282
|
default: true,
|
|
280
283
|
description: ( localize(
|
|
281
|
-
|
|
284
|
+
12648,
|
|
282
285
|
"When enabled, an extension's walkthrough will open upon install of the extension."
|
|
283
286
|
))
|
|
284
287
|
},
|
|
@@ -287,25 +290,25 @@ configurationRegistry.registerConfiguration({
|
|
|
287
290
|
'type': 'string',
|
|
288
291
|
'enum': ['none', 'welcomePage', 'readme', 'newUntitledFile', 'welcomePageInEmptyWorkbench', 'terminal'],
|
|
289
292
|
'enumDescriptions': [
|
|
290
|
-
( localize(
|
|
293
|
+
( localize(12649, "Start without an editor.")),
|
|
291
294
|
( localize(
|
|
292
|
-
|
|
295
|
+
12650,
|
|
293
296
|
"Open the Welcome page, with content to aid in getting started with VS Code and extensions."
|
|
294
297
|
)),
|
|
295
298
|
( localize(
|
|
296
|
-
|
|
299
|
+
12651,
|
|
297
300
|
"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."
|
|
298
301
|
)),
|
|
299
302
|
( localize(
|
|
300
|
-
|
|
303
|
+
12652,
|
|
301
304
|
"Open a new untitled text file (only applies when opening an empty window)."
|
|
302
305
|
)),
|
|
303
|
-
( localize(
|
|
304
|
-
( localize(
|
|
306
|
+
( localize(12653, "Open the Welcome page when opening an empty workbench.")),
|
|
307
|
+
( localize(12654, "Open a new terminal in the editor area.")),
|
|
305
308
|
],
|
|
306
309
|
'default': 'welcomePage',
|
|
307
310
|
'description': ( localize(
|
|
308
|
-
|
|
311
|
+
12655,
|
|
309
312
|
"Controls which editor is shown at startup, if none are restored from the previous session."
|
|
310
313
|
))
|
|
311
314
|
},
|
|
@@ -313,8 +316,8 @@ configurationRegistry.registerConfiguration({
|
|
|
313
316
|
scope: ConfigurationScope.APPLICATION,
|
|
314
317
|
type: 'boolean',
|
|
315
318
|
default: false,
|
|
316
|
-
deprecationMessage: ( localize(
|
|
317
|
-
description: ( localize(
|
|
319
|
+
deprecationMessage: ( localize(12656, "Deprecated, use the global `workbench.reduceMotion`.")),
|
|
320
|
+
description: ( localize(12657, "When enabled, reduce motion in welcome page."))
|
|
318
321
|
}
|
|
319
322
|
}
|
|
320
323
|
});
|
|
@@ -20,7 +20,7 @@ import { IStorageService } from "@codingame/monaco-vscode-api/vscode/vs/platform
|
|
|
20
20
|
import { ITelemetryService } from "@codingame/monaco-vscode-api/vscode/vs/platform/telemetry/common/telemetry.service";
|
|
21
21
|
import { IWorkspaceContextService } from "@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspace.service";
|
|
22
22
|
import { IWorkspacesService } from "@codingame/monaco-vscode-api/vscode/vs/platform/workspaces/common/workspaces.service";
|
|
23
|
-
import { EditorPane } from "@codingame/monaco-vscode-
|
|
23
|
+
import { EditorPane } from "@codingame/monaco-vscode-60014c9d-b815-501d-83a9-4b08725c2ec2-common/vscode/vs/workbench/browser/parts/editor/editorPane";
|
|
24
24
|
import { IEditorOpenContext, IEditorSerializer } from "@codingame/monaco-vscode-api/vscode/vs/workbench/common/editor";
|
|
25
25
|
import { IWebviewService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/webview/browser/webview.service";
|
|
26
26
|
import { GettingStartedInput } from "./gettingStartedInput.js";
|
|
@@ -54,7 +54,7 @@ import { isRecentFolder, isRecentWorkspace } from '@codingame/monaco-vscode-158b
|
|
|
54
54
|
import { IWorkspacesService } from '@codingame/monaco-vscode-api/vscode/vs/platform/workspaces/common/workspaces.service';
|
|
55
55
|
import { OpenRecentAction } from '@codingame/monaco-vscode-158b9837-fc78-5d9c-86f5-9134e4358643-common/vscode/vs/workbench/browser/actions/windowActions';
|
|
56
56
|
import { OpenFolderViaWorkspaceAction, OpenFileFolderAction, OpenFolderAction } from '@codingame/monaco-vscode-f24e325c-2ce0-5bba-8236-bfc4f53180ab-common/vscode/vs/workbench/browser/actions/workspaceActions';
|
|
57
|
-
import { EditorPane } from '@codingame/monaco-vscode-
|
|
57
|
+
import { EditorPane } from '@codingame/monaco-vscode-60014c9d-b815-501d-83a9-4b08725c2ec2-common/vscode/vs/workbench/browser/parts/editor/editorPane';
|
|
58
58
|
import { WorkbenchStateContext } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/contextkeys';
|
|
59
59
|
import { IWebviewService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/webview/browser/webview.service';
|
|
60
60
|
import './gettingStartedColors.js';
|
|
@@ -65,7 +65,7 @@ import { hiddenEntriesConfigurationKey, parseDescription } from './gettingStarte
|
|
|
65
65
|
import { IWalkthroughsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedService.service';
|
|
66
66
|
import { restoreWalkthroughsConfigurationKey } from './startupPage.js';
|
|
67
67
|
import { startEntries } from '../common/gettingStartedContent.js';
|
|
68
|
-
import {
|
|
68
|
+
import { preferredSideBySideGroupDirection, GroupsOrder } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorGroupsService';
|
|
69
69
|
import { IEditorGroupsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorGroupsService.service';
|
|
70
70
|
import { IExtensionService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensions/common/extensions.service';
|
|
71
71
|
import { IHostService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/host/browser/host.service';
|
|
@@ -130,7 +130,7 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
130
130
|
this.container = $('.gettingStartedContainer', {
|
|
131
131
|
role: 'document',
|
|
132
132
|
tabindex: 0,
|
|
133
|
-
'aria-label': ( localize(
|
|
133
|
+
'aria-label': ( localize(12658, "Overview of how to get up to speed with your editor."))
|
|
134
134
|
});
|
|
135
135
|
this.stepMediaComponent = $('.getting-started-media');
|
|
136
136
|
this.stepMediaComponent.id = generateUuid();
|
|
@@ -206,14 +206,14 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
206
206
|
badgeelement.parentElement?.setAttribute('aria-checked', 'true');
|
|
207
207
|
badgeelement.classList.remove(...ThemeIcon.asClassNameArray(gettingStartedUncheckedCodicon));
|
|
208
208
|
badgeelement.classList.add('complete', ...ThemeIcon.asClassNameArray(gettingStartedCheckedCodicon));
|
|
209
|
-
badgeelement.setAttribute('aria-label', ( localize(
|
|
209
|
+
badgeelement.setAttribute('aria-label', ( localize(12659, "Checkbox for Step {0}: Completed", step.title)));
|
|
210
210
|
}
|
|
211
211
|
else {
|
|
212
212
|
badgeelement.setAttribute('aria-checked', 'false');
|
|
213
213
|
badgeelement.parentElement?.setAttribute('aria-checked', 'false');
|
|
214
214
|
badgeelement.classList.remove('complete', ...ThemeIcon.asClassNameArray(gettingStartedCheckedCodicon));
|
|
215
215
|
badgeelement.classList.add(...ThemeIcon.asClassNameArray(gettingStartedUncheckedCodicon));
|
|
216
|
-
badgeelement.setAttribute('aria-label', ( localize(
|
|
216
|
+
badgeelement.setAttribute('aria-label', ( localize(12660, "Checkbox for Step {0}: Not completed", step.title)));
|
|
217
217
|
}
|
|
218
218
|
});
|
|
219
219
|
}
|
|
@@ -415,7 +415,7 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
415
415
|
label: x.title,
|
|
416
416
|
detail: x.description,
|
|
417
417
|
description: x.source,
|
|
418
|
-
}))), { canPickMany: false, matchOnDescription: true, matchOnDetail: true, title: ( localize(
|
|
418
|
+
}))), { canPickMany: false, matchOnDescription: true, matchOnDetail: true, title: ( localize(12661, "Open Walkthrough...")) });
|
|
419
419
|
if (selection) {
|
|
420
420
|
this.runDispatchCommand('selectCategory', selection.id);
|
|
421
421
|
}
|
|
@@ -596,7 +596,7 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
596
596
|
const themeType = this.themeService.getColorTheme().type;
|
|
597
597
|
const videoPath = media.path[themeType];
|
|
598
598
|
const videoPoster = media.poster ? media.poster[themeType] : undefined;
|
|
599
|
-
const altText = media.altText ? media.altText : ( localize(
|
|
599
|
+
const altText = media.altText ? media.altText : ( localize(12662, "Video for {0}", stepToExpand.title));
|
|
600
600
|
const rawHTML = await this.detailsRenderer.renderVideo(videoPath, videoPoster, altText);
|
|
601
601
|
this.webview.setHtml(rawHTML);
|
|
602
602
|
let isDisposed = false;
|
|
@@ -624,8 +624,8 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
624
624
|
provideScreenReaderUpdate() {
|
|
625
625
|
if (this.configurationService.getValue(AccessibilityVerbositySettingId.Walkthrough)) {
|
|
626
626
|
const kbLabel = this.keybindingService.lookupKeybinding(AccessibleViewAction.id)?.getAriaLabel();
|
|
627
|
-
return kbLabel ? ( localize(
|
|
628
|
-
|
|
627
|
+
return kbLabel ? ( localize(12663, "Inspect this in the accessible view ({0}).\n", kbLabel)) : ( localize(
|
|
628
|
+
12664,
|
|
629
629
|
"Inspect this in the accessible view via the command Open Accessible View which is currently not triggerable via keybinding.\n"
|
|
630
630
|
));
|
|
631
631
|
}
|
|
@@ -685,7 +685,7 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
685
685
|
this.categoriesPageScrollbar.dispose();
|
|
686
686
|
}
|
|
687
687
|
this.categoriesSlide = $('.gettingStartedSlideCategories.gettingStartedSlide');
|
|
688
|
-
const prevButton = $('button.prev-button.button-link', { 'x-dispatch': 'scrollPrev' }, $('span.scroll-button.codicon.codicon-chevron-left'), $('span.moreText', {}, ( localize(
|
|
688
|
+
const prevButton = $('button.prev-button.button-link', { 'x-dispatch': 'scrollPrev' }, $('span.scroll-button.codicon.codicon-chevron-left'), $('span.moreText', {}, ( localize(12665, "Go Back"))));
|
|
689
689
|
this.stepsSlide = $('.gettingStartedSlideDetails.gettingStartedSlide', {}, prevButton);
|
|
690
690
|
this.stepsContent = $('.gettingStartedDetailsContent', {});
|
|
691
691
|
this.detailsPageScrollbar = this._register(( new DomScrollableElement(
|
|
@@ -709,11 +709,11 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
709
709
|
icon: Codicon.check,
|
|
710
710
|
actionClassName: 'getting-started-checkbox',
|
|
711
711
|
isChecked: this.configurationService.getValue(configurationKey) === 'welcomePage',
|
|
712
|
-
title: ( localize(
|
|
712
|
+
title: ( localize(12666, "When checked, this page will be shown on startup.")),
|
|
713
713
|
...defaultToggleStyles
|
|
714
714
|
}));
|
|
715
715
|
showOnStartupCheckbox.domNode.id = 'showOnStartup';
|
|
716
|
-
const showOnStartupLabel = $('label.caption', { for: 'showOnStartup' }, ( localize(
|
|
716
|
+
const showOnStartupLabel = $('label.caption', { for: 'showOnStartup' }, ( localize(12667, "Show welcome page on startup")));
|
|
717
717
|
const onShowOnStartupChanged = () => {
|
|
718
718
|
if (showOnStartupCheckbox.checked) {
|
|
719
719
|
this.telemetryService.publicLog2('gettingStarted.ActionExecuted', { command: 'showOnStartupChecked', argument: undefined, walkthroughId: this.currentWalkthrough?.id });
|
|
@@ -732,7 +732,7 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
732
732
|
showOnStartupCheckbox.checked = !showOnStartupCheckbox.checked;
|
|
733
733
|
onShowOnStartupChanged();
|
|
734
734
|
}));
|
|
735
|
-
const header = $('.header', {}, $('h1.product-name.caption', {}, this.productService.nameLong), $('p.subtitle.description', {}, ( localize(
|
|
735
|
+
const header = $('.header', {}, $('h1.product-name.caption', {}, this.productService.nameLong), $('p.subtitle.description', {}, ( localize(12668, "Editing evolved"))));
|
|
736
736
|
const leftColumn = $('.categories-column.categories-column-left', {});
|
|
737
737
|
const rightColumn = $('.categories-column.categories-column-right', {});
|
|
738
738
|
const startList = this.buildStartList();
|
|
@@ -825,7 +825,7 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
825
825
|
const link = $('button.button-link');
|
|
826
826
|
link.innerText = name;
|
|
827
827
|
link.title = fullPath;
|
|
828
|
-
link.setAttribute('aria-label', ( localize(
|
|
828
|
+
link.setAttribute('aria-label', ( localize(12669, "Open folder {0} with path {1}", name, parentPath)));
|
|
829
829
|
link.addEventListener('click', e => {
|
|
830
830
|
this.telemetryService.publicLog2('gettingStarted.ActionExecuted', { command: 'openRecent', argument: undefined, walkthroughId: this.currentWalkthrough?.id });
|
|
831
831
|
this.hostService.openWindow([windowOpenable], {
|
|
@@ -848,18 +848,18 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
848
848
|
this.recentlyOpenedList.dispose();
|
|
849
849
|
}
|
|
850
850
|
const recentlyOpenedList = this.recentlyOpenedList = ( new GettingStartedIndexList({
|
|
851
|
-
title: ( localize(
|
|
851
|
+
title: ( localize(12670, "Recent")),
|
|
852
852
|
klass: 'recently-opened',
|
|
853
853
|
limit: 5,
|
|
854
|
-
empty: $('.empty-recent', {}, ( localize(
|
|
854
|
+
empty: $('.empty-recent', {}, ( localize(12671, "You have no recent folders,")), $('button.button-link', { 'x-dispatch': 'openFolder' }, ( localize(12672, "open a folder"))), ( localize(12673, "to start."))),
|
|
855
855
|
more: $('.more', {}, $('button.button-link', {
|
|
856
856
|
'x-dispatch': 'showMoreRecents',
|
|
857
857
|
title: ( localize(
|
|
858
|
-
|
|
858
|
+
12674,
|
|
859
859
|
"Show All Recent Folders {0}",
|
|
860
860
|
this.getKeybindingLabel(OpenRecentAction.ID)
|
|
861
861
|
))
|
|
862
|
-
}, ( localize(
|
|
862
|
+
}, ( localize(12675, "More...")))),
|
|
863
863
|
renderElement: renderRecent,
|
|
864
864
|
contextService: this.contextService
|
|
865
865
|
}));
|
|
@@ -887,7 +887,7 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
887
887
|
this.startList.dispose();
|
|
888
888
|
}
|
|
889
889
|
const startList = this.startList = ( new GettingStartedIndexList({
|
|
890
|
-
title: ( localize(
|
|
890
|
+
title: ( localize(12676, "Start")),
|
|
891
891
|
klass: 'start-container',
|
|
892
892
|
limit: 10,
|
|
893
893
|
renderElement: renderStartEntry,
|
|
@@ -903,10 +903,10 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
903
903
|
const renderNewBadge = (category.newItems || category.newEntry) && !category.isFeatured;
|
|
904
904
|
const newBadge = $('.new-badge', {});
|
|
905
905
|
if (category.newEntry) {
|
|
906
|
-
reset(newBadge, $('.new-category', {}, ( localize(
|
|
906
|
+
reset(newBadge, $('.new-category', {}, ( localize(12677, "New"))));
|
|
907
907
|
}
|
|
908
908
|
else if (category.newItems) {
|
|
909
|
-
reset(newBadge, $('.new-items', {}, ( localize(
|
|
909
|
+
reset(newBadge, $('.new-items', {}, ( localize(12678, "Updated"))));
|
|
910
910
|
}
|
|
911
911
|
const featuredBadge = $('.featured-badge', {});
|
|
912
912
|
const descriptionContent = $('.description-content', {});
|
|
@@ -922,9 +922,9 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
922
922
|
}, featuredBadge, $('.main-content', {}, this.iconWidgetFor(category), titleContent, renderNewBadge ? newBadge : $('.no-badge'), $('a.codicon.codicon-close.hide-category-button', {
|
|
923
923
|
'tabindex': 0,
|
|
924
924
|
'x-dispatch': 'hideCategory:' + category.id,
|
|
925
|
-
'title': ( localize(
|
|
925
|
+
'title': ( localize(12679, "Hide")),
|
|
926
926
|
'role': 'button',
|
|
927
|
-
'aria-label': ( localize(
|
|
927
|
+
'aria-label': ( localize(12680, "Hide")),
|
|
928
928
|
})), descriptionContent, $('.category-progress', { 'x-data-category-id': category.id, }, $('.progress-bar-outer', { 'role': 'progressbar' }, $('.progress-bar-inner'))));
|
|
929
929
|
};
|
|
930
930
|
if (this.gettingStartedList) {
|
|
@@ -950,10 +950,10 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
950
950
|
return rank;
|
|
951
951
|
};
|
|
952
952
|
const gettingStartedList = this.gettingStartedList = ( new GettingStartedIndexList({
|
|
953
|
-
title: ( localize(
|
|
953
|
+
title: ( localize(12681, "Walkthroughs")),
|
|
954
954
|
klass: 'getting-started',
|
|
955
955
|
limit: 5,
|
|
956
|
-
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(12675, "More..."))),
|
|
957
957
|
renderElement: renderGetttingStaredWalkthrough,
|
|
958
958
|
rankElement: rankWalkthrough,
|
|
959
959
|
contextService: this.contextService,
|
|
@@ -1006,10 +1006,10 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
1006
1006
|
bar.style.width = `${progress}%`;
|
|
1007
1007
|
element.parentElement.classList.toggle('no-progress', stats.stepsComplete === 0);
|
|
1008
1008
|
if (stats.stepsTotal === stats.stepsComplete) {
|
|
1009
|
-
bar.title = ( localize(
|
|
1009
|
+
bar.title = ( localize(12682, "All {0} steps complete!", stats.stepsComplete));
|
|
1010
1010
|
}
|
|
1011
1011
|
else {
|
|
1012
|
-
bar.title = ( localize(
|
|
1012
|
+
bar.title = ( localize(12683, "{0} of {1} steps complete", stats.stepsComplete, stats.stepsTotal));
|
|
1013
1013
|
}
|
|
1014
1014
|
});
|
|
1015
1015
|
}
|
|
@@ -1042,11 +1042,9 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
1042
1042
|
return;
|
|
1043
1043
|
}
|
|
1044
1044
|
if (this.groupsService.count === 1) {
|
|
1045
|
-
const
|
|
1045
|
+
const editorGroupSplitDirection = preferredSideBySideGroupDirection(this.configurationService);
|
|
1046
|
+
const sideGroup = this.groupsService.addGroup(this.groupsService.groups[0], editorGroupSplitDirection);
|
|
1046
1047
|
this.groupsService.activateGroup(sideGroup);
|
|
1047
|
-
const gettingStartedSize = Math.floor(fullSize.width / 2);
|
|
1048
|
-
const gettingStartedGroup = this.groupsService.getGroups(GroupsOrder.MOST_RECENTLY_ACTIVE).find(group => (group.activeEditor instanceof GettingStartedInput));
|
|
1049
|
-
this.groupsService.setSize(assertReturnsDefined(gettingStartedGroup), { width: gettingStartedSize, height: fullSize.height });
|
|
1050
1048
|
}
|
|
1051
1049
|
const nonGettingStartedGroup = this.groupsService.getGroups(GroupsOrder.MOST_RECENTLY_ACTIVE).find(group => !(group.activeEditor instanceof GettingStartedInput));
|
|
1052
1050
|
if (nonGettingStartedGroup) {
|
|
@@ -1132,7 +1130,7 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
1132
1130
|
if (isCommand) {
|
|
1133
1131
|
const keybinding = this.getKeyBinding(command);
|
|
1134
1132
|
if (keybinding) {
|
|
1135
|
-
const shortcutMessage = $('span.shortcut-message', {}, ( localize(
|
|
1133
|
+
const shortcutMessage = $('span.shortcut-message', {}, ( localize(12684, 'Tip: Use keyboard shortcut ')));
|
|
1136
1134
|
container.appendChild(shortcutMessage);
|
|
1137
1135
|
const label = ( new KeybindingLabel(shortcutMessage, OS, { ...defaultKeybindingLabelStyles }));
|
|
1138
1136
|
label.set(keybinding);
|
|
@@ -1220,8 +1218,8 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
1220
1218
|
'role': 'checkbox',
|
|
1221
1219
|
'aria-checked': step.done ? 'true' : 'false',
|
|
1222
1220
|
'aria-label': step.done
|
|
1223
|
-
? ( localize(
|
|
1224
|
-
: ( localize(
|
|
1221
|
+
? ( localize(12659, "Checkbox for Step {0}: Completed", step.title))
|
|
1222
|
+
: ( localize(12660, "Checkbox for Step {0}: Not completed", step.title)),
|
|
1225
1223
|
});
|
|
1226
1224
|
const container = $('.step-description-container', { 'x-step-description-for': step.id });
|
|
1227
1225
|
this.buildMarkdownDescription(container, step.description);
|
|
@@ -1229,10 +1227,10 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
1229
1227
|
reset(stepTitle, ...renderLabelWithIcons(step.title));
|
|
1230
1228
|
const stepDescription = $('.step-container', {}, stepTitle, container);
|
|
1231
1229
|
if (step.media.type === 'image') {
|
|
1232
|
-
stepDescription.appendChild($('.image-description', { 'aria-label': ( localize(
|
|
1230
|
+
stepDescription.appendChild($('.image-description', { 'aria-label': ( localize(12685, "Image showing {0}", step.media.altText)) }));
|
|
1233
1231
|
}
|
|
1234
1232
|
else if (step.media.type === 'video') {
|
|
1235
|
-
stepDescription.appendChild($('.video-description', { 'aria-label': ( localize(
|
|
1233
|
+
stepDescription.appendChild($('.video-description', { 'aria-label': ( localize(12686, "Video showing {0}", step.media.altText)) }));
|
|
1236
1234
|
}
|
|
1237
1235
|
return $('button.getting-started-step', {
|
|
1238
1236
|
'x-dispatch': 'selectTask:' + step.id,
|
|
@@ -1252,8 +1250,8 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
1252
1250
|
}
|
|
1253
1251
|
}));
|
|
1254
1252
|
const showNextCategory = this.gettingStartedCategories.find(_category => _category.id === category.next);
|
|
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(
|
|
1256
|
-
? [$('button.button-link.next', { 'x-dispatch': 'nextSection' }, ( localize(
|
|
1253
|
+
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(12687, "Mark Done"))), ...(showNextCategory
|
|
1254
|
+
? [$('button.button-link.next', { 'x-dispatch': 'nextSection' }, ( localize(12688, "Next Section")), $('span.codicon.codicon-arrow-right'))]
|
|
1257
1255
|
: [])));
|
|
1258
1256
|
this.detailsScrollbar = this._register(( new DomScrollableElement(stepsContainer, { className: 'steps-container' })));
|
|
1259
1257
|
const stepListComponent = this.detailsScrollbar.getDomNode();
|
|
@@ -1270,12 +1268,12 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
1270
1268
|
}
|
|
1271
1269
|
buildTelemetryFooter(parent) {
|
|
1272
1270
|
const mdRenderer = this.instantiationService.createInstance(MarkdownRenderer, {});
|
|
1273
|
-
const privacyStatementCopy = ( localize(
|
|
1271
|
+
const privacyStatementCopy = ( localize(12689, "privacy statement"));
|
|
1274
1272
|
const privacyStatementButton = `[${privacyStatementCopy}](command:workbench.action.openPrivacyStatementUrl)`;
|
|
1275
|
-
const optOutCopy = ( localize(
|
|
1273
|
+
const optOutCopy = ( localize(12690, "opt out"));
|
|
1276
1274
|
const optOutButton = `[${optOutCopy}](command:settings.filterByTelemetry)`;
|
|
1277
1275
|
const text = ( localize(
|
|
1278
|
-
|
|
1276
|
+
12691,
|
|
1279
1277
|
"{0} collects usage data. Read our {1} and learn how to {2}.",
|
|
1280
1278
|
this.productService.nameShort,
|
|
1281
1279
|
privacyStatementButton,
|
|
@@ -1347,7 +1345,7 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
1347
1345
|
const prevButton = this.container.querySelector('.prev-button.button-link');
|
|
1348
1346
|
prevButton.style.display = this.editorInput.showWelcome || this.prevWalkthrough ? 'block' : 'none';
|
|
1349
1347
|
const moreTextElement = prevButton.querySelector('.moreText');
|
|
1350
|
-
moreTextElement.textContent = firstLaunch ? ( localize(
|
|
1348
|
+
moreTextElement.textContent = firstLaunch ? ( localize(12692, "Welcome")) : ( localize(12665, "Go Back"));
|
|
1351
1349
|
this.container.querySelector('.gettingStartedSlideDetails').querySelectorAll('button').forEach(button => button.disabled = false);
|
|
1352
1350
|
this.container.querySelector('.gettingStartedSlideCategories').querySelectorAll('button').forEach(button => button.disabled = true);
|
|
1353
1351
|
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(12693, '{0}\n{1}', step.title, description));
|
|
120
120
|
if (includeTitle) {
|
|
121
121
|
return [
|
|
122
|
-
( localize(
|
|
123
|
-
( localize(
|
|
122
|
+
( localize(12694, 'Title: {0}', waltkrough.title)),
|
|
123
|
+
( localize(12695, '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(12696, 'Background color for the Welcome page.')));
|
|
16
|
+
registerColor('welcomePage.tileBackground', { dark: editorWidgetBackground, light: editorWidgetBackground, hcDark: '#000', hcLight: editorWidgetBackground }, ( localize(12697, '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(12698, 'Hover background color for the tiles on the Welcome.')));
|
|
18
|
+
registerColor('welcomePage.tileBorder', { dark: '#ffffff1a', light: '#0000001a', hcDark: contrastBorder, hcLight: contrastBorder }, ( localize(12699, 'Border color for the tiles on the Welcome page.')));
|
|
19
|
+
registerColor('welcomePage.progress.background', inputBackground, ( localize(12700, 'Foreground color for the Welcome page progress bars.')));
|
|
20
|
+
registerColor('welcomePage.progress.foreground', textLinkForeground, ( localize(12701, 'Background color for the Welcome page progress bars.')));
|
|
21
|
+
registerColor('walkthrough.stepTitle.foreground', { light: '#000000', dark: '#ffffff', hcDark: null, hcLight: null }, ( localize(12702, 'Foreground color of the heading of each walkthrough step')));
|