@codingame/monaco-vscode-walkthrough-service-override 13.0.0 → 13.1.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 +11 -14
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.contribution.js +20 -20
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.js +31 -31
- 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 +37 -37
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedIcons.js +2 -2
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedInput.js +1 -1
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedService._contribution.js +3 -3
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedService.js +1 -1
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/startupPage.js +2 -2
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/common/gettingStartedContent.js +168 -168
- 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/walkThrough.contribution.js +2 -2
- package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/walkThroughInput.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/walkThroughInput.js +1 -1
- package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/walkThroughPart.js +2 -2
- 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": "13.
|
|
3
|
+
"version": "13.1.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - walkthrough service-override",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,21 +15,18 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-
|
|
19
|
-
"@codingame/monaco-vscode-
|
|
20
|
-
"@codingame/monaco-vscode-
|
|
21
|
-
"@codingame/monaco-vscode-7bbc9e7d-eeae-55fc-8bf9-dc2f66e0dc73-common": "13.
|
|
22
|
-
"@codingame/monaco-vscode-82e231ca-6ed7-5920-b2b8-1874ccc0be07-common": "13.
|
|
23
|
-
"@codingame/monaco-vscode-9d0168a3-519b-57f3-9bcc-89efc41f951a-common": "13.
|
|
24
|
-
"@codingame/monaco-vscode-9e888134-1a6f-58d9-b0e6-0fc047448366-common": "13.
|
|
25
|
-
"@codingame/monaco-vscode-
|
|
26
|
-
"@codingame/monaco-vscode-
|
|
18
|
+
"@codingame/monaco-vscode-56402b83-4a60-5b15-86f9-71fe99c32744-common": "13.1.0",
|
|
19
|
+
"@codingame/monaco-vscode-5e324391-11e3-5ceb-93ee-938e4098e4ad-common": "13.1.0",
|
|
20
|
+
"@codingame/monaco-vscode-7443a901-21f6-577a-9674-42893b997ee0-common": "13.1.0",
|
|
21
|
+
"@codingame/monaco-vscode-7bbc9e7d-eeae-55fc-8bf9-dc2f66e0dc73-common": "13.1.0",
|
|
22
|
+
"@codingame/monaco-vscode-82e231ca-6ed7-5920-b2b8-1874ccc0be07-common": "13.1.0",
|
|
23
|
+
"@codingame/monaco-vscode-9d0168a3-519b-57f3-9bcc-89efc41f951a-common": "13.1.0",
|
|
24
|
+
"@codingame/monaco-vscode-9e888134-1a6f-58d9-b0e6-0fc047448366-common": "13.1.0",
|
|
25
|
+
"@codingame/monaco-vscode-api": "13.1.0",
|
|
26
|
+
"@codingame/monaco-vscode-cc9ccbec-e2a1-599d-84ae-46f5efc666e3-common": "13.1.0",
|
|
27
|
+
"@codingame/monaco-vscode-e7080bda-ce3e-5243-9a35-98cd9634dbda-common": "13.1.0",
|
|
27
28
|
"marked": "14.0.0"
|
|
28
29
|
},
|
|
29
|
-
"peerDependencies": {
|
|
30
|
-
"@codingame/monaco-vscode-api": "13.0.0"
|
|
31
|
-
},
|
|
32
|
-
"peerDependenciesMeta": {},
|
|
33
30
|
"main": "index.js",
|
|
34
31
|
"module": "index.js",
|
|
35
32
|
"types": "index.d.ts",
|
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(10737, 'Welcome')),
|
|
44
44
|
category: Categories.Help,
|
|
45
45
|
f1: true,
|
|
46
46
|
menu: {
|
|
@@ -49,7 +49,7 @@ registerAction2(class extends Action2 {
|
|
|
49
49
|
order: 1,
|
|
50
50
|
},
|
|
51
51
|
metadata: {
|
|
52
|
-
description: ( localize2(
|
|
52
|
+
description: ( localize2(10738, 'Opens a Walkthrough to help you get started in VS Code.'))
|
|
53
53
|
}
|
|
54
54
|
});
|
|
55
55
|
}
|
|
@@ -127,15 +127,15 @@ registerAction2(class extends Action2 {
|
|
|
127
127
|
}
|
|
128
128
|
});
|
|
129
129
|
( Registry.as(EditorExtensions.EditorFactory)).registerEditorSerializer(GettingStartedInput.ID, GettingStartedInputSerializer);
|
|
130
|
-
( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(EditorPaneDescriptor.create(GettingStartedPage, GettingStartedPage.ID, ( localize(
|
|
130
|
+
( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(EditorPaneDescriptor.create(GettingStartedPage, GettingStartedPage.ID, ( localize(10739, "Welcome"))), [
|
|
131
131
|
( new SyncDescriptor(GettingStartedInput))
|
|
132
132
|
]);
|
|
133
|
-
const category = ( localize2(
|
|
133
|
+
const category = ( localize2(10739, "Welcome"));
|
|
134
134
|
registerAction2(class extends Action2 {
|
|
135
135
|
constructor() {
|
|
136
136
|
super({
|
|
137
137
|
id: 'welcome.goBack',
|
|
138
|
-
title: ( localize2(
|
|
138
|
+
title: ( localize2(10740, 'Go Back')),
|
|
139
139
|
category,
|
|
140
140
|
keybinding: {
|
|
141
141
|
weight: KeybindingWeight.EditorContrib,
|
|
@@ -171,7 +171,7 @@ registerAction2(class extends Action2 {
|
|
|
171
171
|
constructor() {
|
|
172
172
|
super({
|
|
173
173
|
id: 'welcome.markStepComplete',
|
|
174
|
-
title: ( localize(
|
|
174
|
+
title: ( localize(10741, "Mark Step Complete")),
|
|
175
175
|
category,
|
|
176
176
|
});
|
|
177
177
|
}
|
|
@@ -187,7 +187,7 @@ registerAction2(class extends Action2 {
|
|
|
187
187
|
constructor() {
|
|
188
188
|
super({
|
|
189
189
|
id: 'welcome.markStepIncomplete',
|
|
190
|
-
title: ( localize(
|
|
190
|
+
title: ( localize(10742, "Mark Step Incomplete")),
|
|
191
191
|
category,
|
|
192
192
|
});
|
|
193
193
|
}
|
|
@@ -203,7 +203,7 @@ registerAction2(class extends Action2 {
|
|
|
203
203
|
constructor() {
|
|
204
204
|
super({
|
|
205
205
|
id: 'welcome.showAllWalkthroughs',
|
|
206
|
-
title: ( localize2(
|
|
206
|
+
title: ( localize2(10743, 'Open Walkthrough...')),
|
|
207
207
|
category,
|
|
208
208
|
f1: true,
|
|
209
209
|
});
|
|
@@ -230,7 +230,7 @@ registerAction2(class extends Action2 {
|
|
|
230
230
|
quickPick.canSelectMany = false;
|
|
231
231
|
quickPick.matchOnDescription = true;
|
|
232
232
|
quickPick.matchOnDetail = true;
|
|
233
|
-
quickPick.placeholder = ( localize(
|
|
233
|
+
quickPick.placeholder = ( localize(10744, 'Select a walkthrough to open'));
|
|
234
234
|
quickPick.items = await this.getQuickPickItems(contextService, gettingStartedService);
|
|
235
235
|
quickPick.busy = true;
|
|
236
236
|
disposables.add(quickPick.onDidAccept(() => {
|
|
@@ -250,7 +250,7 @@ registerAction2(class extends Action2 {
|
|
|
250
250
|
}
|
|
251
251
|
});
|
|
252
252
|
const WorkspacePlatform = ( new RawContextKey('workspacePlatform', undefined, ( localize(
|
|
253
|
-
|
|
253
|
+
10745,
|
|
254
254
|
"The platform of the current workspace, which in remote or serverless contexts may be different from the platform of the UI"
|
|
255
255
|
))));
|
|
256
256
|
let WorkspacePlatformContribution = class WorkspacePlatformContribution {
|
|
@@ -302,7 +302,7 @@ configurationRegistry.registerConfiguration({
|
|
|
302
302
|
type: 'boolean',
|
|
303
303
|
default: true,
|
|
304
304
|
description: ( localize(
|
|
305
|
-
|
|
305
|
+
10746,
|
|
306
306
|
"When enabled, an extension's walkthrough will open upon install of the extension."
|
|
307
307
|
))
|
|
308
308
|
},
|
|
@@ -311,25 +311,25 @@ configurationRegistry.registerConfiguration({
|
|
|
311
311
|
'type': 'string',
|
|
312
312
|
'enum': ['none', 'welcomePage', 'readme', 'newUntitledFile', 'welcomePageInEmptyWorkbench', 'terminal'],
|
|
313
313
|
'enumDescriptions': [
|
|
314
|
-
( localize(
|
|
314
|
+
( localize(10747, "Start without an editor.")),
|
|
315
315
|
( localize(
|
|
316
|
-
|
|
316
|
+
10748,
|
|
317
317
|
"Open the Welcome page, with content to aid in getting started with VS Code and extensions."
|
|
318
318
|
)),
|
|
319
319
|
( localize(
|
|
320
|
-
|
|
320
|
+
10749,
|
|
321
321
|
"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
322
|
)),
|
|
323
323
|
( localize(
|
|
324
|
-
|
|
324
|
+
10750,
|
|
325
325
|
"Open a new untitled text file (only applies when opening an empty window)."
|
|
326
326
|
)),
|
|
327
|
-
( localize(
|
|
328
|
-
( localize(
|
|
327
|
+
( localize(10751, "Open the Welcome page when opening an empty workbench.")),
|
|
328
|
+
( localize(10752, "Open a new terminal in the editor area.")),
|
|
329
329
|
],
|
|
330
330
|
'default': 'welcomePage',
|
|
331
331
|
'description': ( localize(
|
|
332
|
-
|
|
332
|
+
10753,
|
|
333
333
|
"Controls which editor is shown at startup, if none are restored from the previous session."
|
|
334
334
|
))
|
|
335
335
|
},
|
|
@@ -337,8 +337,8 @@ configurationRegistry.registerConfiguration({
|
|
|
337
337
|
scope: ConfigurationScope.APPLICATION,
|
|
338
338
|
type: 'boolean',
|
|
339
339
|
default: false,
|
|
340
|
-
deprecationMessage: ( localize(
|
|
341
|
-
description: ( localize(
|
|
340
|
+
deprecationMessage: ( localize(10754, "Deprecated, use the global `workbench.reduceMotion`.")),
|
|
341
|
+
description: ( localize(10755, "When enabled, reduce motion in welcome page."))
|
|
342
342
|
}
|
|
343
343
|
}
|
|
344
344
|
});
|
|
@@ -29,7 +29,7 @@ import { IEditorGroup } from "@codingame/monaco-vscode-api/vscode/vs/workbench/s
|
|
|
29
29
|
import { IEditorGroupsService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorGroupsService.service";
|
|
30
30
|
import { IExtensionService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensions/common/extensions.service";
|
|
31
31
|
import { IHostService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/host/browser/host.service";
|
|
32
|
-
import { IWorkbenchThemeService } from "@codingame/monaco-vscode-
|
|
32
|
+
import { IWorkbenchThemeService } from "@codingame/monaco-vscode-7443a901-21f6-577a-9674-42893b997ee0-common/vscode/vs/workbench/services/themes/common/workbenchThemeService.service";
|
|
33
33
|
export declare const allWalkthroughsHiddenContext: RawContextKey<boolean>;
|
|
34
34
|
export declare const inWelcomeContext: RawContextKey<boolean>;
|
|
35
35
|
export interface IWelcomePageStartEntry {
|
|
@@ -68,7 +68,7 @@ import { GroupDirection, GroupsOrder } from '@codingame/monaco-vscode-api/vscode
|
|
|
68
68
|
import { IEditorGroupsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorGroupsService.service';
|
|
69
69
|
import { IExtensionService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensions/common/extensions.service';
|
|
70
70
|
import { IHostService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/host/browser/host.service';
|
|
71
|
-
import { IWorkbenchThemeService } from '@codingame/monaco-vscode-
|
|
71
|
+
import { IWorkbenchThemeService } from '@codingame/monaco-vscode-7443a901-21f6-577a-9674-42893b997ee0-common/vscode/vs/workbench/services/themes/common/workbenchThemeService.service';
|
|
72
72
|
import { GettingStartedIndexList } from './gettingStartedList.js';
|
|
73
73
|
import { AccessibilityVerbositySettingId } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration';
|
|
74
74
|
import { AccessibleViewAction } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/accessibility/browser/accessibleViewActions';
|
|
@@ -128,7 +128,7 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
128
128
|
this.container = $('.gettingStartedContainer', {
|
|
129
129
|
role: 'document',
|
|
130
130
|
tabindex: 0,
|
|
131
|
-
'aria-label': ( localize(
|
|
131
|
+
'aria-label': ( localize(10756, "Overview of how to get up to speed with your editor."))
|
|
132
132
|
});
|
|
133
133
|
this.stepMediaComponent = $('.getting-started-media');
|
|
134
134
|
this.stepMediaComponent.id = generateUuid();
|
|
@@ -410,7 +410,7 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
410
410
|
label: x.title,
|
|
411
411
|
detail: x.description,
|
|
412
412
|
description: x.source,
|
|
413
|
-
}))), { canPickMany: false, matchOnDescription: true, matchOnDetail: true, title: ( localize(
|
|
413
|
+
}))), { canPickMany: false, matchOnDescription: true, matchOnDetail: true, title: ( localize(10757, "Open Walkthrough...")) });
|
|
414
414
|
if (selection) {
|
|
415
415
|
this.runDispatchCommand('selectCategory', selection.id);
|
|
416
416
|
}
|
|
@@ -589,8 +589,8 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
589
589
|
provideScreenReaderUpdate() {
|
|
590
590
|
if (this.configurationService.getValue(AccessibilityVerbositySettingId.Walkthrough)) {
|
|
591
591
|
const kbLabel = this.keybindingService.lookupKeybinding(AccessibleViewAction.id)?.getAriaLabel();
|
|
592
|
-
return kbLabel ? ( localize(
|
|
593
|
-
|
|
592
|
+
return kbLabel ? ( localize(10758, "Inspect this in the accessible view ({0}).\n", kbLabel)) : ( localize(
|
|
593
|
+
10759,
|
|
594
594
|
"Inspect this in the accessible view via the command Open Accessible View which is currently not triggerable via keybinding.\n"
|
|
595
595
|
));
|
|
596
596
|
}
|
|
@@ -650,7 +650,7 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
650
650
|
this.categoriesPageScrollbar.dispose();
|
|
651
651
|
}
|
|
652
652
|
this.categoriesSlide = $('.gettingStartedSlideCategories.gettingStartedSlide');
|
|
653
|
-
const prevButton = $('button.prev-button.button-link', { 'x-dispatch': 'scrollPrev' }, $('span.scroll-button.codicon.codicon-chevron-left'), $('span.moreText', {}, ( localize(
|
|
653
|
+
const prevButton = $('button.prev-button.button-link', { 'x-dispatch': 'scrollPrev' }, $('span.scroll-button.codicon.codicon-chevron-left'), $('span.moreText', {}, ( localize(10760, "Go Back"))));
|
|
654
654
|
this.stepsSlide = $('.gettingStartedSlideDetails.gettingStartedSlide', {}, prevButton);
|
|
655
655
|
this.stepsContent = $('.gettingStartedDetailsContent', {});
|
|
656
656
|
this.detailsPageScrollbar = this._register(( new DomScrollableElement(this.stepsContent, { className: 'full-height-scrollable' })));
|
|
@@ -671,11 +671,11 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
671
671
|
icon: Codicon.check,
|
|
672
672
|
actionClassName: 'getting-started-checkbox',
|
|
673
673
|
isChecked: this.configurationService.getValue(configurationKey) === 'welcomePage',
|
|
674
|
-
title: ( localize(
|
|
674
|
+
title: ( localize(10761, "When checked, this page will be shown on startup.")),
|
|
675
675
|
...defaultToggleStyles
|
|
676
676
|
}));
|
|
677
677
|
showOnStartupCheckbox.domNode.id = 'showOnStartup';
|
|
678
|
-
const showOnStartupLabel = $('label.caption', { for: 'showOnStartup' }, ( localize(
|
|
678
|
+
const showOnStartupLabel = $('label.caption', { for: 'showOnStartup' }, ( localize(10762, "Show welcome page on startup")));
|
|
679
679
|
const onShowOnStartupChanged = () => {
|
|
680
680
|
if (showOnStartupCheckbox.checked) {
|
|
681
681
|
this.telemetryService.publicLog2('gettingStarted.ActionExecuted', { command: 'showOnStartupChecked', argument: undefined, walkthroughId: this.currentWalkthrough?.id });
|
|
@@ -694,7 +694,7 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
694
694
|
showOnStartupCheckbox.checked = !showOnStartupCheckbox.checked;
|
|
695
695
|
onShowOnStartupChanged();
|
|
696
696
|
}));
|
|
697
|
-
const header = $('.header', {}, $('h1.product-name.caption', {}, this.productService.nameLong), $('p.subtitle.description', {}, ( localize(
|
|
697
|
+
const header = $('.header', {}, $('h1.product-name.caption', {}, this.productService.nameLong), $('p.subtitle.description', {}, ( localize(10763, "Editing evolved"))));
|
|
698
698
|
const leftColumn = $('.categories-column.categories-column-left', {});
|
|
699
699
|
const rightColumn = $('.categories-column.categories-column-right', {});
|
|
700
700
|
const startList = this.buildStartList();
|
|
@@ -789,7 +789,7 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
789
789
|
const link = $('button.button-link');
|
|
790
790
|
link.innerText = name;
|
|
791
791
|
link.title = fullPath;
|
|
792
|
-
link.setAttribute('aria-label', ( localize(
|
|
792
|
+
link.setAttribute('aria-label', ( localize(10764, "Open folder {0} with path {1}", name, parentPath)));
|
|
793
793
|
link.addEventListener('click', e => {
|
|
794
794
|
this.telemetryService.publicLog2('gettingStarted.ActionExecuted', { command: 'openRecent', argument: undefined, walkthroughId: this.currentWalkthrough?.id });
|
|
795
795
|
this.hostService.openWindow([windowOpenable], {
|
|
@@ -812,18 +812,18 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
812
812
|
this.recentlyOpenedList.dispose();
|
|
813
813
|
}
|
|
814
814
|
const recentlyOpenedList = this.recentlyOpenedList = ( new GettingStartedIndexList({
|
|
815
|
-
title: ( localize(
|
|
815
|
+
title: ( localize(10765, "Recent")),
|
|
816
816
|
klass: 'recently-opened',
|
|
817
817
|
limit: 5,
|
|
818
|
-
empty: $('.empty-recent', {}, ( localize(
|
|
818
|
+
empty: $('.empty-recent', {}, ( localize(10766, "You have no recent folders,")), $('button.button-link', { 'x-dispatch': 'openFolder' }, ( localize(10767, "open a folder"))), ( localize(10768, "to start."))),
|
|
819
819
|
more: $('.more', {}, $('button.button-link', {
|
|
820
820
|
'x-dispatch': 'showMoreRecents',
|
|
821
821
|
title: ( localize(
|
|
822
|
-
|
|
822
|
+
10769,
|
|
823
823
|
"Show All Recent Folders {0}",
|
|
824
824
|
this.getKeybindingLabel(OpenRecentAction.ID)
|
|
825
825
|
))
|
|
826
|
-
}, ( localize(
|
|
826
|
+
}, ( localize(10770, "More...")))),
|
|
827
827
|
renderElement: renderRecent,
|
|
828
828
|
contextService: this.contextService
|
|
829
829
|
}));
|
|
@@ -851,7 +851,7 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
851
851
|
this.startList.dispose();
|
|
852
852
|
}
|
|
853
853
|
const startList = this.startList = ( new GettingStartedIndexList({
|
|
854
|
-
title: ( localize(
|
|
854
|
+
title: ( localize(10771, "Start")),
|
|
855
855
|
klass: 'start-container',
|
|
856
856
|
limit: 10,
|
|
857
857
|
renderElement: renderStartEntry,
|
|
@@ -867,10 +867,10 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
867
867
|
const renderNewBadge = (category.newItems || category.newEntry) && !category.isFeatured;
|
|
868
868
|
const newBadge = $('.new-badge', {});
|
|
869
869
|
if (category.newEntry) {
|
|
870
|
-
reset(newBadge, $('.new-category', {}, ( localize(
|
|
870
|
+
reset(newBadge, $('.new-category', {}, ( localize(10772, "New"))));
|
|
871
871
|
}
|
|
872
872
|
else if (category.newItems) {
|
|
873
|
-
reset(newBadge, $('.new-items', {}, ( localize(
|
|
873
|
+
reset(newBadge, $('.new-items', {}, ( localize(10773, "Updated"))));
|
|
874
874
|
}
|
|
875
875
|
const featuredBadge = $('.featured-badge', {});
|
|
876
876
|
const descriptionContent = $('.description-content', {});
|
|
@@ -886,9 +886,9 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
886
886
|
}, featuredBadge, $('.main-content', {}, this.iconWidgetFor(category), titleContent, renderNewBadge ? newBadge : $('.no-badge'), $('a.codicon.codicon-close.hide-category-button', {
|
|
887
887
|
'tabindex': 0,
|
|
888
888
|
'x-dispatch': 'hideCategory:' + category.id,
|
|
889
|
-
'title': ( localize(
|
|
889
|
+
'title': ( localize(10774, "Hide")),
|
|
890
890
|
'role': 'button',
|
|
891
|
-
'aria-label': ( localize(
|
|
891
|
+
'aria-label': ( localize(10775, "Hide")),
|
|
892
892
|
})), descriptionContent, $('.category-progress', { 'x-data-category-id': category.id, }, $('.progress-bar-outer', { 'role': 'progressbar' }, $('.progress-bar-inner'))));
|
|
893
893
|
};
|
|
894
894
|
if (this.gettingStartedList) {
|
|
@@ -914,10 +914,10 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
914
914
|
return rank;
|
|
915
915
|
};
|
|
916
916
|
const gettingStartedList = this.gettingStartedList = ( new GettingStartedIndexList({
|
|
917
|
-
title: ( localize(
|
|
917
|
+
title: ( localize(10776, "Walkthroughs")),
|
|
918
918
|
klass: 'getting-started',
|
|
919
919
|
limit: 5,
|
|
920
|
-
footer: $('span.button-link.see-all-walkthroughs', { 'x-dispatch': 'seeAllWalkthroughs', 'tabindex': 0 }, ( localize(
|
|
920
|
+
footer: $('span.button-link.see-all-walkthroughs', { 'x-dispatch': 'seeAllWalkthroughs', 'tabindex': 0 }, ( localize(10770, "More..."))),
|
|
921
921
|
renderElement: renderGetttingStaredWalkthrough,
|
|
922
922
|
rankElement: rankWalkthrough,
|
|
923
923
|
contextService: this.contextService,
|
|
@@ -970,10 +970,10 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
970
970
|
bar.style.width = `${progress}%`;
|
|
971
971
|
element.parentElement.classList.toggle('no-progress', stats.stepsComplete === 0);
|
|
972
972
|
if (stats.stepsTotal === stats.stepsComplete) {
|
|
973
|
-
bar.title = ( localize(
|
|
973
|
+
bar.title = ( localize(10777, "All {0} steps complete!", stats.stepsComplete));
|
|
974
974
|
}
|
|
975
975
|
else {
|
|
976
|
-
bar.title = ( localize(
|
|
976
|
+
bar.title = ( localize(10778, "{0} of {1} steps complete", stats.stepsComplete, stats.stepsTotal));
|
|
977
977
|
}
|
|
978
978
|
});
|
|
979
979
|
}
|
|
@@ -1096,7 +1096,7 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
1096
1096
|
if (isCommand) {
|
|
1097
1097
|
const keybinding = this.getKeyBinding(command);
|
|
1098
1098
|
if (keybinding) {
|
|
1099
|
-
const shortcutMessage = $('span.shortcut-message', {}, ( localize(
|
|
1099
|
+
const shortcutMessage = $('span.shortcut-message', {}, ( localize(10779, 'Tip: Use keyboard shortcut ')));
|
|
1100
1100
|
container.appendChild(shortcutMessage);
|
|
1101
1101
|
const label = ( new KeybindingLabel(shortcutMessage, OS, { ...defaultKeybindingLabelStyles }));
|
|
1102
1102
|
label.set(keybinding);
|
|
@@ -1188,7 +1188,7 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
1188
1188
|
reset(stepTitle, ...renderLabelWithIcons(step.title));
|
|
1189
1189
|
const stepDescription = $('.step-container', {}, stepTitle, container);
|
|
1190
1190
|
if (step.media.type === 'image') {
|
|
1191
|
-
stepDescription.appendChild($('.image-description', { 'aria-label': ( localize(
|
|
1191
|
+
stepDescription.appendChild($('.image-description', { 'aria-label': ( localize(10780, "Image showing {0}", step.media.altText)) }));
|
|
1192
1192
|
}
|
|
1193
1193
|
return $('button.getting-started-step', {
|
|
1194
1194
|
'x-dispatch': 'selectTask:' + step.id,
|
|
@@ -1208,8 +1208,8 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
1208
1208
|
}
|
|
1209
1209
|
}));
|
|
1210
1210
|
const showNextCategory = this.gettingStartedCategories.find(_category => _category.id === category.next);
|
|
1211
|
-
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(
|
|
1212
|
-
? [$('button.button-link.next', { 'x-dispatch': 'nextSection' }, ( localize(
|
|
1211
|
+
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(10781, "Mark Done"))), ...(showNextCategory
|
|
1212
|
+
? [$('button.button-link.next', { 'x-dispatch': 'nextSection' }, ( localize(10782, "Next Section")), $('span.codicon.codicon-arrow-right'))]
|
|
1213
1213
|
: [])));
|
|
1214
1214
|
this.detailsScrollbar = this._register(( new DomScrollableElement(stepsContainer, { className: 'steps-container' })));
|
|
1215
1215
|
const stepListComponent = this.detailsScrollbar.getDomNode();
|
|
@@ -1226,12 +1226,12 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
1226
1226
|
}
|
|
1227
1227
|
buildTelemetryFooter(parent) {
|
|
1228
1228
|
const mdRenderer = this.instantiationService.createInstance(MarkdownRenderer, {});
|
|
1229
|
-
const privacyStatementCopy = ( localize(
|
|
1229
|
+
const privacyStatementCopy = ( localize(10783, "privacy statement"));
|
|
1230
1230
|
const privacyStatementButton = `[${privacyStatementCopy}](command:workbench.action.openPrivacyStatementUrl)`;
|
|
1231
|
-
const optOutCopy = ( localize(
|
|
1231
|
+
const optOutCopy = ( localize(10784, "opt out"));
|
|
1232
1232
|
const optOutButton = `[${optOutCopy}](command:settings.filterByTelemetry)`;
|
|
1233
1233
|
const text = ( localize(
|
|
1234
|
-
|
|
1234
|
+
10785,
|
|
1235
1235
|
"{0} collects usage data. Read our {1} and learn how to {2}.",
|
|
1236
1236
|
this.productService.nameShort,
|
|
1237
1237
|
privacyStatementButton,
|
|
@@ -1303,7 +1303,7 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
1303
1303
|
const prevButton = this.container.querySelector('.prev-button.button-link');
|
|
1304
1304
|
prevButton.style.display = this.editorInput.showWelcome || this.prevWalkthrough ? 'block' : 'none';
|
|
1305
1305
|
const moreTextElement = prevButton.querySelector('.moreText');
|
|
1306
|
-
moreTextElement.textContent = firstLaunch ? ( localize(
|
|
1306
|
+
moreTextElement.textContent = firstLaunch ? ( localize(10786, "Welcome")) : ( localize(10760, "Go Back"));
|
|
1307
1307
|
this.container.querySelector('.gettingStartedSlideDetails').querySelectorAll('button').forEach(button => button.disabled = false);
|
|
1308
1308
|
this.container.querySelector('.gettingStartedSlideCategories').querySelectorAll('button').forEach(button => button.disabled = true);
|
|
1309
1309
|
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(10787, '{0}\n{1}', step.title, description));
|
|
120
120
|
if (includeTitle) {
|
|
121
121
|
return [
|
|
122
|
-
( localize(
|
|
123
|
-
( localize(
|
|
122
|
+
( localize(10788, 'Title: {0}', waltkrough.title)),
|
|
123
|
+
( localize(10789, '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(10790, 'Background color for the Welcome page.')));
|
|
16
|
+
registerColor('welcomePage.tileBackground', { dark: editorWidgetBackground, light: editorWidgetBackground, hcDark: '#000', hcLight: editorWidgetBackground }, ( localize(10791, '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(10792, 'Hover background color for the tiles on the Welcome.')));
|
|
18
|
+
registerColor('welcomePage.tileBorder', { dark: '#ffffff1a', light: '#0000001a', hcDark: contrastBorder, hcLight: contrastBorder }, ( localize(10793, 'Border color for the tiles on the Welcome page.')));
|
|
19
|
+
registerColor('welcomePage.progress.background', inputBackground, ( localize(10794, 'Foreground color for the Welcome page progress bars.')));
|
|
20
|
+
registerColor('welcomePage.progress.foreground', textLinkForeground, ( localize(10795, 'Background color for the Welcome page progress bars.')));
|
|
21
|
+
registerColor('walkthrough.stepTitle.foreground', { light: '#000000', dark: '#ffffff', hcDark: null, hcLight: null }, ( localize(10796, 'Foreground color of the heading of each walkthrough step')));
|