@codingame/monaco-vscode-walkthrough-service-override 15.0.0 → 15.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +10 -10
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.contribution.js +20 -20
- 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 +156 -156
- 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/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": "15.0.
|
|
3
|
+
"version": "15.0.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - walkthrough service-override",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,15 +15,15 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-12c5f9eb-72d3-57ca-babd-5bef7aa9de3b-common": "15.0.
|
|
19
|
-
"@codingame/monaco-vscode-5e324391-11e3-5ceb-93ee-938e4098e4ad-common": "15.0.
|
|
20
|
-
"@codingame/monaco-vscode-7559b0be-bfa5-5fe6-b731-1973fe9fffa1-common": "15.0.
|
|
21
|
-
"@codingame/monaco-vscode-7ba0af96-90c2-5e11-ad7f-befdbbf246c8-common": "15.0.
|
|
22
|
-
"@codingame/monaco-vscode-7bbc9e7d-eeae-55fc-8bf9-dc2f66e0dc73-common": "15.0.
|
|
23
|
-
"@codingame/monaco-vscode-9d0168a3-519b-57f3-9bcc-89efc41f951a-common": "15.0.
|
|
24
|
-
"@codingame/monaco-vscode-a4c2011e-8775-52bd-abf0-4a3c07a9696b-common": "15.0.
|
|
25
|
-
"@codingame/monaco-vscode-aff8bc9b-c6f8-578f-9c8a-f70d14f9c13c-common": "15.0.
|
|
26
|
-
"@codingame/monaco-vscode-api": "15.0.
|
|
18
|
+
"@codingame/monaco-vscode-12c5f9eb-72d3-57ca-babd-5bef7aa9de3b-common": "15.0.2",
|
|
19
|
+
"@codingame/monaco-vscode-5e324391-11e3-5ceb-93ee-938e4098e4ad-common": "15.0.2",
|
|
20
|
+
"@codingame/monaco-vscode-7559b0be-bfa5-5fe6-b731-1973fe9fffa1-common": "15.0.2",
|
|
21
|
+
"@codingame/monaco-vscode-7ba0af96-90c2-5e11-ad7f-befdbbf246c8-common": "15.0.2",
|
|
22
|
+
"@codingame/monaco-vscode-7bbc9e7d-eeae-55fc-8bf9-dc2f66e0dc73-common": "15.0.2",
|
|
23
|
+
"@codingame/monaco-vscode-9d0168a3-519b-57f3-9bcc-89efc41f951a-common": "15.0.2",
|
|
24
|
+
"@codingame/monaco-vscode-a4c2011e-8775-52bd-abf0-4a3c07a9696b-common": "15.0.2",
|
|
25
|
+
"@codingame/monaco-vscode-aff8bc9b-c6f8-578f-9c8a-f70d14f9c13c-common": "15.0.2",
|
|
26
|
+
"@codingame/monaco-vscode-api": "15.0.2",
|
|
27
27
|
"marked": "14.0.0"
|
|
28
28
|
},
|
|
29
29
|
"main": "index.js",
|
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(11055, '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(11056, '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(11057, "Welcome"))), [
|
|
131
131
|
( new SyncDescriptor(GettingStartedInput))
|
|
132
132
|
]);
|
|
133
|
-
const category = ( localize2(
|
|
133
|
+
const category = ( localize2(11057, "Welcome"));
|
|
134
134
|
registerAction2(class extends Action2 {
|
|
135
135
|
constructor() {
|
|
136
136
|
super({
|
|
137
137
|
id: 'welcome.goBack',
|
|
138
|
-
title: ( localize2(
|
|
138
|
+
title: ( localize2(11058, '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(11059, "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(11060, "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(11061, '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(11062, '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
|
+
11063,
|
|
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
|
+
11064,
|
|
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(11065, "Start without an editor.")),
|
|
315
315
|
( localize(
|
|
316
|
-
|
|
316
|
+
11066,
|
|
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
|
+
11067,
|
|
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
|
+
11068,
|
|
325
325
|
"Open a new untitled text file (only applies when opening an empty window)."
|
|
326
326
|
)),
|
|
327
|
-
( localize(
|
|
328
|
-
( localize(
|
|
327
|
+
( localize(11069, "Open the Welcome page when opening an empty workbench.")),
|
|
328
|
+
( localize(11070, "Open a new terminal in the editor area.")),
|
|
329
329
|
],
|
|
330
330
|
'default': 'welcomePage',
|
|
331
331
|
'description': ( localize(
|
|
332
|
-
|
|
332
|
+
11071,
|
|
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(11072, "Deprecated, use the global `workbench.reduceMotion`.")),
|
|
341
|
+
description: ( localize(11073, "When enabled, reduce motion in welcome page."))
|
|
342
342
|
}
|
|
343
343
|
}
|
|
344
344
|
});
|
|
@@ -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(11074, "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();
|
|
@@ -411,7 +411,7 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
411
411
|
label: x.title,
|
|
412
412
|
detail: x.description,
|
|
413
413
|
description: x.source,
|
|
414
|
-
}))), { canPickMany: false, matchOnDescription: true, matchOnDetail: true, title: ( localize(
|
|
414
|
+
}))), { canPickMany: false, matchOnDescription: true, matchOnDetail: true, title: ( localize(11075, "Open Walkthrough...")) });
|
|
415
415
|
if (selection) {
|
|
416
416
|
this.runDispatchCommand('selectCategory', selection.id);
|
|
417
417
|
}
|
|
@@ -619,8 +619,8 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
619
619
|
provideScreenReaderUpdate() {
|
|
620
620
|
if (this.configurationService.getValue(AccessibilityVerbositySettingId.Walkthrough)) {
|
|
621
621
|
const kbLabel = this.keybindingService.lookupKeybinding(AccessibleViewAction.id)?.getAriaLabel();
|
|
622
|
-
return kbLabel ? ( localize(
|
|
623
|
-
|
|
622
|
+
return kbLabel ? ( localize(11076, "Inspect this in the accessible view ({0}).\n", kbLabel)) : ( localize(
|
|
623
|
+
11077,
|
|
624
624
|
"Inspect this in the accessible view via the command Open Accessible View which is currently not triggerable via keybinding.\n"
|
|
625
625
|
));
|
|
626
626
|
}
|
|
@@ -680,7 +680,7 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
680
680
|
this.categoriesPageScrollbar.dispose();
|
|
681
681
|
}
|
|
682
682
|
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(
|
|
683
|
+
const prevButton = $('button.prev-button.button-link', { 'x-dispatch': 'scrollPrev' }, $('span.scroll-button.codicon.codicon-chevron-left'), $('span.moreText', {}, ( localize(11078, "Go Back"))));
|
|
684
684
|
this.stepsSlide = $('.gettingStartedSlideDetails.gettingStartedSlide', {}, prevButton);
|
|
685
685
|
this.stepsContent = $('.gettingStartedDetailsContent', {});
|
|
686
686
|
this.detailsPageScrollbar = this._register(( new DomScrollableElement(
|
|
@@ -704,11 +704,11 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
704
704
|
icon: Codicon.check,
|
|
705
705
|
actionClassName: 'getting-started-checkbox',
|
|
706
706
|
isChecked: this.configurationService.getValue(configurationKey) === 'welcomePage',
|
|
707
|
-
title: ( localize(
|
|
707
|
+
title: ( localize(11079, "When checked, this page will be shown on startup.")),
|
|
708
708
|
...defaultToggleStyles
|
|
709
709
|
}));
|
|
710
710
|
showOnStartupCheckbox.domNode.id = 'showOnStartup';
|
|
711
|
-
const showOnStartupLabel = $('label.caption', { for: 'showOnStartup' }, ( localize(
|
|
711
|
+
const showOnStartupLabel = $('label.caption', { for: 'showOnStartup' }, ( localize(11080, "Show welcome page on startup")));
|
|
712
712
|
const onShowOnStartupChanged = () => {
|
|
713
713
|
if (showOnStartupCheckbox.checked) {
|
|
714
714
|
this.telemetryService.publicLog2('gettingStarted.ActionExecuted', { command: 'showOnStartupChecked', argument: undefined, walkthroughId: this.currentWalkthrough?.id });
|
|
@@ -727,7 +727,7 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
727
727
|
showOnStartupCheckbox.checked = !showOnStartupCheckbox.checked;
|
|
728
728
|
onShowOnStartupChanged();
|
|
729
729
|
}));
|
|
730
|
-
const header = $('.header', {}, $('h1.product-name.caption', {}, this.productService.nameLong), $('p.subtitle.description', {}, ( localize(
|
|
730
|
+
const header = $('.header', {}, $('h1.product-name.caption', {}, this.productService.nameLong), $('p.subtitle.description', {}, ( localize(11081, "Editing evolved"))));
|
|
731
731
|
const leftColumn = $('.categories-column.categories-column-left', {});
|
|
732
732
|
const rightColumn = $('.categories-column.categories-column-right', {});
|
|
733
733
|
const startList = this.buildStartList();
|
|
@@ -822,7 +822,7 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
822
822
|
const link = $('button.button-link');
|
|
823
823
|
link.innerText = name;
|
|
824
824
|
link.title = fullPath;
|
|
825
|
-
link.setAttribute('aria-label', ( localize(
|
|
825
|
+
link.setAttribute('aria-label', ( localize(11082, "Open folder {0} with path {1}", name, parentPath)));
|
|
826
826
|
link.addEventListener('click', e => {
|
|
827
827
|
this.telemetryService.publicLog2('gettingStarted.ActionExecuted', { command: 'openRecent', argument: undefined, walkthroughId: this.currentWalkthrough?.id });
|
|
828
828
|
this.hostService.openWindow([windowOpenable], {
|
|
@@ -845,18 +845,18 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
845
845
|
this.recentlyOpenedList.dispose();
|
|
846
846
|
}
|
|
847
847
|
const recentlyOpenedList = this.recentlyOpenedList = ( new GettingStartedIndexList({
|
|
848
|
-
title: ( localize(
|
|
848
|
+
title: ( localize(11083, "Recent")),
|
|
849
849
|
klass: 'recently-opened',
|
|
850
850
|
limit: 5,
|
|
851
|
-
empty: $('.empty-recent', {}, ( localize(
|
|
851
|
+
empty: $('.empty-recent', {}, ( localize(11084, "You have no recent folders,")), $('button.button-link', { 'x-dispatch': 'openFolder' }, ( localize(11085, "open a folder"))), ( localize(11086, "to start."))),
|
|
852
852
|
more: $('.more', {}, $('button.button-link', {
|
|
853
853
|
'x-dispatch': 'showMoreRecents',
|
|
854
854
|
title: ( localize(
|
|
855
|
-
|
|
855
|
+
11087,
|
|
856
856
|
"Show All Recent Folders {0}",
|
|
857
857
|
this.getKeybindingLabel(OpenRecentAction.ID)
|
|
858
858
|
))
|
|
859
|
-
}, ( localize(
|
|
859
|
+
}, ( localize(11088, "More...")))),
|
|
860
860
|
renderElement: renderRecent,
|
|
861
861
|
contextService: this.contextService
|
|
862
862
|
}));
|
|
@@ -884,7 +884,7 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
884
884
|
this.startList.dispose();
|
|
885
885
|
}
|
|
886
886
|
const startList = this.startList = ( new GettingStartedIndexList({
|
|
887
|
-
title: ( localize(
|
|
887
|
+
title: ( localize(11089, "Start")),
|
|
888
888
|
klass: 'start-container',
|
|
889
889
|
limit: 10,
|
|
890
890
|
renderElement: renderStartEntry,
|
|
@@ -900,10 +900,10 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
900
900
|
const renderNewBadge = (category.newItems || category.newEntry) && !category.isFeatured;
|
|
901
901
|
const newBadge = $('.new-badge', {});
|
|
902
902
|
if (category.newEntry) {
|
|
903
|
-
reset(newBadge, $('.new-category', {}, ( localize(
|
|
903
|
+
reset(newBadge, $('.new-category', {}, ( localize(11090, "New"))));
|
|
904
904
|
}
|
|
905
905
|
else if (category.newItems) {
|
|
906
|
-
reset(newBadge, $('.new-items', {}, ( localize(
|
|
906
|
+
reset(newBadge, $('.new-items', {}, ( localize(11091, "Updated"))));
|
|
907
907
|
}
|
|
908
908
|
const featuredBadge = $('.featured-badge', {});
|
|
909
909
|
const descriptionContent = $('.description-content', {});
|
|
@@ -919,9 +919,9 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
919
919
|
}, featuredBadge, $('.main-content', {}, this.iconWidgetFor(category), titleContent, renderNewBadge ? newBadge : $('.no-badge'), $('a.codicon.codicon-close.hide-category-button', {
|
|
920
920
|
'tabindex': 0,
|
|
921
921
|
'x-dispatch': 'hideCategory:' + category.id,
|
|
922
|
-
'title': ( localize(
|
|
922
|
+
'title': ( localize(11092, "Hide")),
|
|
923
923
|
'role': 'button',
|
|
924
|
-
'aria-label': ( localize(
|
|
924
|
+
'aria-label': ( localize(11093, "Hide")),
|
|
925
925
|
})), descriptionContent, $('.category-progress', { 'x-data-category-id': category.id, }, $('.progress-bar-outer', { 'role': 'progressbar' }, $('.progress-bar-inner'))));
|
|
926
926
|
};
|
|
927
927
|
if (this.gettingStartedList) {
|
|
@@ -947,10 +947,10 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
947
947
|
return rank;
|
|
948
948
|
};
|
|
949
949
|
const gettingStartedList = this.gettingStartedList = ( new GettingStartedIndexList({
|
|
950
|
-
title: ( localize(
|
|
950
|
+
title: ( localize(11094, "Walkthroughs")),
|
|
951
951
|
klass: 'getting-started',
|
|
952
952
|
limit: 5,
|
|
953
|
-
footer: $('span.button-link.see-all-walkthroughs', { 'x-dispatch': 'seeAllWalkthroughs', 'tabindex': 0 }, ( localize(
|
|
953
|
+
footer: $('span.button-link.see-all-walkthroughs', { 'x-dispatch': 'seeAllWalkthroughs', 'tabindex': 0 }, ( localize(11088, "More..."))),
|
|
954
954
|
renderElement: renderGetttingStaredWalkthrough,
|
|
955
955
|
rankElement: rankWalkthrough,
|
|
956
956
|
contextService: this.contextService,
|
|
@@ -1003,10 +1003,10 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
1003
1003
|
bar.style.width = `${progress}%`;
|
|
1004
1004
|
element.parentElement.classList.toggle('no-progress', stats.stepsComplete === 0);
|
|
1005
1005
|
if (stats.stepsTotal === stats.stepsComplete) {
|
|
1006
|
-
bar.title = ( localize(
|
|
1006
|
+
bar.title = ( localize(11095, "All {0} steps complete!", stats.stepsComplete));
|
|
1007
1007
|
}
|
|
1008
1008
|
else {
|
|
1009
|
-
bar.title = ( localize(
|
|
1009
|
+
bar.title = ( localize(11096, "{0} of {1} steps complete", stats.stepsComplete, stats.stepsTotal));
|
|
1010
1010
|
}
|
|
1011
1011
|
});
|
|
1012
1012
|
}
|
|
@@ -1129,7 +1129,7 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
1129
1129
|
if (isCommand) {
|
|
1130
1130
|
const keybinding = this.getKeyBinding(command);
|
|
1131
1131
|
if (keybinding) {
|
|
1132
|
-
const shortcutMessage = $('span.shortcut-message', {}, ( localize(
|
|
1132
|
+
const shortcutMessage = $('span.shortcut-message', {}, ( localize(11097, 'Tip: Use keyboard shortcut ')));
|
|
1133
1133
|
container.appendChild(shortcutMessage);
|
|
1134
1134
|
const label = ( new KeybindingLabel(shortcutMessage, OS, { ...defaultKeybindingLabelStyles }));
|
|
1135
1135
|
label.set(keybinding);
|
|
@@ -1222,10 +1222,10 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
1222
1222
|
reset(stepTitle, ...renderLabelWithIcons(step.title));
|
|
1223
1223
|
const stepDescription = $('.step-container', {}, stepTitle, container);
|
|
1224
1224
|
if (step.media.type === 'image') {
|
|
1225
|
-
stepDescription.appendChild($('.image-description', { 'aria-label': ( localize(
|
|
1225
|
+
stepDescription.appendChild($('.image-description', { 'aria-label': ( localize(11098, "Image showing {0}", step.media.altText)) }));
|
|
1226
1226
|
}
|
|
1227
1227
|
else if (step.media.type === 'video') {
|
|
1228
|
-
stepDescription.appendChild($('.video-description', { 'aria-label': ( localize(
|
|
1228
|
+
stepDescription.appendChild($('.video-description', { 'aria-label': ( localize(11099, "Video showing {0}", step.media.altText)) }));
|
|
1229
1229
|
}
|
|
1230
1230
|
return $('button.getting-started-step', {
|
|
1231
1231
|
'x-dispatch': 'selectTask:' + step.id,
|
|
@@ -1245,8 +1245,8 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
1245
1245
|
}
|
|
1246
1246
|
}));
|
|
1247
1247
|
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(
|
|
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(11100, "Mark Done"))), ...(showNextCategory
|
|
1249
|
+
? [$('button.button-link.next', { 'x-dispatch': 'nextSection' }, ( localize(11101, "Next Section")), $('span.codicon.codicon-arrow-right'))]
|
|
1250
1250
|
: [])));
|
|
1251
1251
|
this.detailsScrollbar = this._register(( new DomScrollableElement(stepsContainer, { className: 'steps-container' })));
|
|
1252
1252
|
const stepListComponent = this.detailsScrollbar.getDomNode();
|
|
@@ -1263,12 +1263,12 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
1263
1263
|
}
|
|
1264
1264
|
buildTelemetryFooter(parent) {
|
|
1265
1265
|
const mdRenderer = this.instantiationService.createInstance(MarkdownRenderer, {});
|
|
1266
|
-
const privacyStatementCopy = ( localize(
|
|
1266
|
+
const privacyStatementCopy = ( localize(11102, "privacy statement"));
|
|
1267
1267
|
const privacyStatementButton = `[${privacyStatementCopy}](command:workbench.action.openPrivacyStatementUrl)`;
|
|
1268
|
-
const optOutCopy = ( localize(
|
|
1268
|
+
const optOutCopy = ( localize(11103, "opt out"));
|
|
1269
1269
|
const optOutButton = `[${optOutCopy}](command:settings.filterByTelemetry)`;
|
|
1270
1270
|
const text = ( localize(
|
|
1271
|
-
|
|
1271
|
+
11104,
|
|
1272
1272
|
"{0} collects usage data. Read our {1} and learn how to {2}.",
|
|
1273
1273
|
this.productService.nameShort,
|
|
1274
1274
|
privacyStatementButton,
|
|
@@ -1339,7 +1339,7 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
1339
1339
|
const prevButton = this.container.querySelector('.prev-button.button-link');
|
|
1340
1340
|
prevButton.style.display = this.editorInput.showWelcome || this.prevWalkthrough ? 'block' : 'none';
|
|
1341
1341
|
const moreTextElement = prevButton.querySelector('.moreText');
|
|
1342
|
-
moreTextElement.textContent = firstLaunch ? ( localize(
|
|
1342
|
+
moreTextElement.textContent = firstLaunch ? ( localize(11105, "Welcome")) : ( localize(11078, "Go Back"));
|
|
1343
1343
|
this.container.querySelector('.gettingStartedSlideDetails').querySelectorAll('button').forEach(button => button.disabled = false);
|
|
1344
1344
|
this.container.querySelector('.gettingStartedSlideCategories').querySelectorAll('button').forEach(button => button.disabled = true);
|
|
1345
1345
|
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(11106, '{0}\n{1}', step.title, description));
|
|
120
120
|
if (includeTitle) {
|
|
121
121
|
return [
|
|
122
|
-
( localize(
|
|
123
|
-
( localize(
|
|
122
|
+
( localize(11107, 'Title: {0}', waltkrough.title)),
|
|
123
|
+
( localize(11108, '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(11109, 'Background color for the Welcome page.')));
|
|
16
|
+
registerColor('welcomePage.tileBackground', { dark: editorWidgetBackground, light: editorWidgetBackground, hcDark: '#000', hcLight: editorWidgetBackground }, ( localize(11110, '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(11111, 'Hover background color for the tiles on the Welcome.')));
|
|
18
|
+
registerColor('welcomePage.tileBorder', { dark: '#ffffff1a', light: '#0000001a', hcDark: contrastBorder, hcLight: contrastBorder }, ( localize(11112, 'Border color for the tiles on the Welcome page.')));
|
|
19
|
+
registerColor('welcomePage.progress.background', inputBackground, ( localize(11113, 'Foreground color for the Welcome page progress bars.')));
|
|
20
|
+
registerColor('welcomePage.progress.foreground', textLinkForeground, ( localize(11114, 'Background color for the Welcome page progress bars.')));
|
|
21
|
+
registerColor('walkthrough.stepTitle.foreground', { light: '#000000', dark: '#ffffff', hcDark: null, hcLight: null }, ( localize(11115, 'Foreground color of the heading of each walkthrough step')));
|