@codingame/monaco-vscode-walkthrough-service-override 11.0.2 → 11.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.contribution.js +20 -20
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.js +30 -30
- 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 +160 -160
- 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": "11.
|
|
3
|
+
"version": "11.1.1",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "CodinGame",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"vscode": "npm:@codingame/monaco-vscode-api@11.
|
|
29
|
+
"vscode": "npm:@codingame/monaco-vscode-api@11.1.1",
|
|
30
30
|
"marked": "~14.0.0"
|
|
31
31
|
}
|
|
32
32
|
}
|
package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.contribution.js
CHANGED
|
@@ -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(2674, '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(2675, 'Opens a Walkthrough to help you get started in VS Code.'))
|
|
50
50
|
}
|
|
51
51
|
});
|
|
52
52
|
}
|
|
@@ -124,15 +124,15 @@ registerAction2(class extends Action2 {
|
|
|
124
124
|
}
|
|
125
125
|
});
|
|
126
126
|
( (Registry.as(EditorExtensions.EditorFactory))).registerEditorSerializer(GettingStartedInput.ID, GettingStartedInputSerializer);
|
|
127
|
-
( (Registry.as(EditorExtensions.EditorPane))).registerEditorPane(EditorPaneDescriptor.create(GettingStartedPage, GettingStartedPage.ID, ( localize(
|
|
127
|
+
( (Registry.as(EditorExtensions.EditorPane))).registerEditorPane(EditorPaneDescriptor.create(GettingStartedPage, GettingStartedPage.ID, ( localize(2676, "Welcome"))), [
|
|
128
128
|
( (new SyncDescriptor(GettingStartedInput)))
|
|
129
129
|
]);
|
|
130
|
-
const category = ( localize2(
|
|
130
|
+
const category = ( localize2(2676, "Welcome"));
|
|
131
131
|
registerAction2(class extends Action2 {
|
|
132
132
|
constructor() {
|
|
133
133
|
super({
|
|
134
134
|
id: 'welcome.goBack',
|
|
135
|
-
title: ( localize2(
|
|
135
|
+
title: ( localize2(2677, 'Go Back')),
|
|
136
136
|
category,
|
|
137
137
|
keybinding: {
|
|
138
138
|
weight: 100 ,
|
|
@@ -168,7 +168,7 @@ registerAction2(class extends Action2 {
|
|
|
168
168
|
constructor() {
|
|
169
169
|
super({
|
|
170
170
|
id: 'welcome.markStepComplete',
|
|
171
|
-
title: ( localize(
|
|
171
|
+
title: ( localize(2678, "Mark Step Complete")),
|
|
172
172
|
category,
|
|
173
173
|
});
|
|
174
174
|
}
|
|
@@ -184,7 +184,7 @@ registerAction2(class extends Action2 {
|
|
|
184
184
|
constructor() {
|
|
185
185
|
super({
|
|
186
186
|
id: 'welcome.markStepIncomplete',
|
|
187
|
-
title: ( localize(
|
|
187
|
+
title: ( localize(2679, "Mark Step Incomplete")),
|
|
188
188
|
category,
|
|
189
189
|
});
|
|
190
190
|
}
|
|
@@ -200,7 +200,7 @@ registerAction2(class extends Action2 {
|
|
|
200
200
|
constructor() {
|
|
201
201
|
super({
|
|
202
202
|
id: 'welcome.showAllWalkthroughs',
|
|
203
|
-
title: ( localize2(
|
|
203
|
+
title: ( localize2(2680, 'Open Walkthrough...')),
|
|
204
204
|
category,
|
|
205
205
|
f1: true,
|
|
206
206
|
});
|
|
@@ -229,7 +229,7 @@ registerAction2(class extends Action2 {
|
|
|
229
229
|
quickPick.canSelectMany = false;
|
|
230
230
|
quickPick.matchOnDescription = true;
|
|
231
231
|
quickPick.matchOnDetail = true;
|
|
232
|
-
quickPick.placeholder = ( localize(
|
|
232
|
+
quickPick.placeholder = ( localize(2681, 'Select a walkthrough to open'));
|
|
233
233
|
quickPick.items = await this.getQuickPickItems(contextService, gettingStartedService);
|
|
234
234
|
quickPick.busy = true;
|
|
235
235
|
disposables.add(quickPick.onDidAccept(() => {
|
|
@@ -249,7 +249,7 @@ registerAction2(class extends Action2 {
|
|
|
249
249
|
}
|
|
250
250
|
});
|
|
251
251
|
const WorkspacePlatform = ( (new RawContextKey('workspacePlatform', undefined, ( localize(
|
|
252
|
-
|
|
252
|
+
2682,
|
|
253
253
|
"The platform of the current workspace, which in remote or serverless contexts may be different from the platform of the UI"
|
|
254
254
|
)))));
|
|
255
255
|
let WorkspacePlatformContribution = class WorkspacePlatformContribution {
|
|
@@ -301,7 +301,7 @@ configurationRegistry.registerConfiguration({
|
|
|
301
301
|
type: 'boolean',
|
|
302
302
|
default: true,
|
|
303
303
|
description: ( localize(
|
|
304
|
-
|
|
304
|
+
2683,
|
|
305
305
|
"When enabled, an extension's walkthrough will open upon install of the extension."
|
|
306
306
|
))
|
|
307
307
|
},
|
|
@@ -310,25 +310,25 @@ configurationRegistry.registerConfiguration({
|
|
|
310
310
|
'type': 'string',
|
|
311
311
|
'enum': ['none', 'welcomePage', 'readme', 'newUntitledFile', 'welcomePageInEmptyWorkbench', 'terminal'],
|
|
312
312
|
'enumDescriptions': [
|
|
313
|
-
( localize(
|
|
313
|
+
( localize(2684, "Start without an editor.")),
|
|
314
314
|
( localize(
|
|
315
|
-
|
|
315
|
+
2685,
|
|
316
316
|
"Open the Welcome page, with content to aid in getting started with VS Code and extensions."
|
|
317
317
|
)),
|
|
318
318
|
( localize(
|
|
319
|
-
|
|
319
|
+
2686,
|
|
320
320
|
"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."
|
|
321
321
|
)),
|
|
322
322
|
( localize(
|
|
323
|
-
|
|
323
|
+
2687,
|
|
324
324
|
"Open a new untitled text file (only applies when opening an empty window)."
|
|
325
325
|
)),
|
|
326
|
-
( localize(
|
|
327
|
-
( localize(
|
|
326
|
+
( localize(2688, "Open the Welcome page when opening an empty workbench.")),
|
|
327
|
+
( localize(2689, "Open a new terminal in the editor area.")),
|
|
328
328
|
],
|
|
329
329
|
'default': 'welcomePage',
|
|
330
330
|
'description': ( localize(
|
|
331
|
-
|
|
331
|
+
2690,
|
|
332
332
|
"Controls which editor is shown at startup, if none are restored from the previous session."
|
|
333
333
|
))
|
|
334
334
|
},
|
|
@@ -336,8 +336,8 @@ configurationRegistry.registerConfiguration({
|
|
|
336
336
|
scope: 1 ,
|
|
337
337
|
type: 'boolean',
|
|
338
338
|
default: false,
|
|
339
|
-
deprecationMessage: ( localize(
|
|
340
|
-
description: ( localize(
|
|
339
|
+
deprecationMessage: ( localize(2691, "Deprecated, use the global `workbench.reduceMotion`.")),
|
|
340
|
+
description: ( localize(2692, "When enabled, reduce motion in welcome page."))
|
|
341
341
|
}
|
|
342
342
|
}
|
|
343
343
|
});
|
|
@@ -122,7 +122,7 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
122
122
|
this.container = $('.gettingStartedContainer', {
|
|
123
123
|
role: 'document',
|
|
124
124
|
tabindex: 0,
|
|
125
|
-
'aria-label': ( localize(
|
|
125
|
+
'aria-label': ( localize(7280, "Overview of how to get up to speed with your editor."))
|
|
126
126
|
});
|
|
127
127
|
this.stepMediaComponent = $('.getting-started-media');
|
|
128
128
|
this.stepMediaComponent.id = generateUuid();
|
|
@@ -404,7 +404,7 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
404
404
|
label: x.title,
|
|
405
405
|
detail: x.description,
|
|
406
406
|
description: x.source,
|
|
407
|
-
})))), { canPickMany: false, matchOnDescription: true, matchOnDetail: true, title: ( localize(
|
|
407
|
+
})))), { canPickMany: false, matchOnDescription: true, matchOnDetail: true, title: ( localize(7281, "Open Walkthrough...")) });
|
|
408
408
|
if (selection) {
|
|
409
409
|
this.runDispatchCommand('selectCategory', selection.id);
|
|
410
410
|
}
|
|
@@ -589,8 +589,8 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
589
589
|
provideScreenReaderUpdate() {
|
|
590
590
|
if (this.configurationService.getValue("accessibility.verbosity.walkthrough" )) {
|
|
591
591
|
const kbLabel = this.keybindingService.lookupKeybinding(AccessibleViewAction.id)?.getAriaLabel();
|
|
592
|
-
return kbLabel ? ( localize(
|
|
593
|
-
|
|
592
|
+
return kbLabel ? ( localize(7282, "Inspect this in the accessible view ({0}).\n", kbLabel)) : ( localize(
|
|
593
|
+
7283,
|
|
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
|
}
|
|
@@ -642,7 +642,7 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
642
642
|
this.categoriesPageScrollbar.dispose();
|
|
643
643
|
}
|
|
644
644
|
this.categoriesSlide = $('.gettingStartedSlideCategories.gettingStartedSlide');
|
|
645
|
-
const prevButton = $('button.prev-button.button-link', { 'x-dispatch': 'scrollPrev' }, $('span.scroll-button.codicon.codicon-chevron-left'), $('span.moreText', {}, ( localize(
|
|
645
|
+
const prevButton = $('button.prev-button.button-link', { 'x-dispatch': 'scrollPrev' }, $('span.scroll-button.codicon.codicon-chevron-left'), $('span.moreText', {}, ( localize(7284, "Go Back"))));
|
|
646
646
|
this.stepsSlide = $('.gettingStartedSlideDetails.gettingStartedSlide', {}, prevButton);
|
|
647
647
|
this.stepsContent = $('.gettingStartedDetailsContent', {});
|
|
648
648
|
this.detailsPageScrollbar = this._register(( (new DomScrollableElement(this.stepsContent, { className: 'full-height-scrollable' }))));
|
|
@@ -663,11 +663,11 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
663
663
|
icon: Codicon.check,
|
|
664
664
|
actionClassName: 'getting-started-checkbox',
|
|
665
665
|
isChecked: this.configurationService.getValue(configurationKey) === 'welcomePage',
|
|
666
|
-
title: ( localize(
|
|
666
|
+
title: ( localize(7285, "When checked, this page will be shown on startup.")),
|
|
667
667
|
...defaultToggleStyles
|
|
668
668
|
})));
|
|
669
669
|
showOnStartupCheckbox.domNode.id = 'showOnStartup';
|
|
670
|
-
const showOnStartupLabel = $('label.caption', { for: 'showOnStartup' }, ( localize(
|
|
670
|
+
const showOnStartupLabel = $('label.caption', { for: 'showOnStartup' }, ( localize(7286, "Show welcome page on startup")));
|
|
671
671
|
const onShowOnStartupChanged = () => {
|
|
672
672
|
if (showOnStartupCheckbox.checked) {
|
|
673
673
|
this.telemetryService.publicLog2('gettingStarted.ActionExecuted', { command: 'showOnStartupChecked', argument: undefined, walkthroughId: this.currentWalkthrough?.id });
|
|
@@ -686,7 +686,7 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
686
686
|
showOnStartupCheckbox.checked = !showOnStartupCheckbox.checked;
|
|
687
687
|
onShowOnStartupChanged();
|
|
688
688
|
}));
|
|
689
|
-
const header = $('.header', {}, $('h1.product-name.caption', {}, this.productService.nameLong), $('p.subtitle.description', {}, ( localize(
|
|
689
|
+
const header = $('.header', {}, $('h1.product-name.caption', {}, this.productService.nameLong), $('p.subtitle.description', {}, ( localize(7287, "Editing evolved"))));
|
|
690
690
|
const leftColumn = $('.categories-column.categories-column-left', {});
|
|
691
691
|
const rightColumn = $('.categories-column.categories-column-right', {});
|
|
692
692
|
const startList = this.buildStartList();
|
|
@@ -781,7 +781,7 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
781
781
|
const link = $('button.button-link');
|
|
782
782
|
link.innerText = name;
|
|
783
783
|
link.title = fullPath;
|
|
784
|
-
link.setAttribute('aria-label', ( localize(
|
|
784
|
+
link.setAttribute('aria-label', ( localize(7288, "Open folder {0} with path {1}", name, parentPath)));
|
|
785
785
|
link.addEventListener('click', e => {
|
|
786
786
|
this.telemetryService.publicLog2('gettingStarted.ActionExecuted', { command: 'openRecent', argument: undefined, walkthroughId: this.currentWalkthrough?.id });
|
|
787
787
|
this.hostService.openWindow([windowOpenable], {
|
|
@@ -804,18 +804,18 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
804
804
|
this.recentlyOpenedList.dispose();
|
|
805
805
|
}
|
|
806
806
|
const recentlyOpenedList = this.recentlyOpenedList = ( (new GettingStartedIndexList({
|
|
807
|
-
title: ( localize(
|
|
807
|
+
title: ( localize(7289, "Recent")),
|
|
808
808
|
klass: 'recently-opened',
|
|
809
809
|
limit: 5,
|
|
810
|
-
empty: $('.empty-recent', {}, ( localize(
|
|
810
|
+
empty: $('.empty-recent', {}, ( localize(7290, "You have no recent folders,")), $('button.button-link', { 'x-dispatch': 'openFolder' }, ( localize(7291, "open a folder"))), ( localize(7292, "to start."))),
|
|
811
811
|
more: $('.more', {}, $('button.button-link', {
|
|
812
812
|
'x-dispatch': 'showMoreRecents',
|
|
813
813
|
title: ( localize(
|
|
814
|
-
|
|
814
|
+
7293,
|
|
815
815
|
"Show All Recent Folders {0}",
|
|
816
816
|
this.getKeybindingLabel(OpenRecentAction.ID)
|
|
817
817
|
))
|
|
818
|
-
}, ( localize(
|
|
818
|
+
}, ( localize(7294, "More...")))),
|
|
819
819
|
renderElement: renderRecent,
|
|
820
820
|
contextService: this.contextService
|
|
821
821
|
})));
|
|
@@ -843,7 +843,7 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
843
843
|
this.startList.dispose();
|
|
844
844
|
}
|
|
845
845
|
const startList = this.startList = ( (new GettingStartedIndexList({
|
|
846
|
-
title: ( localize(
|
|
846
|
+
title: ( localize(7295, "Start")),
|
|
847
847
|
klass: 'start-container',
|
|
848
848
|
limit: 10,
|
|
849
849
|
renderElement: renderStartEntry,
|
|
@@ -859,10 +859,10 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
859
859
|
const renderNewBadge = (category.newItems || category.newEntry) && !category.isFeatured;
|
|
860
860
|
const newBadge = $('.new-badge', {});
|
|
861
861
|
if (category.newEntry) {
|
|
862
|
-
reset(newBadge, $('.new-category', {}, ( localize(
|
|
862
|
+
reset(newBadge, $('.new-category', {}, ( localize(7296, "New"))));
|
|
863
863
|
}
|
|
864
864
|
else if (category.newItems) {
|
|
865
|
-
reset(newBadge, $('.new-items', {}, ( localize(
|
|
865
|
+
reset(newBadge, $('.new-items', {}, ( localize(7297, "Updated"))));
|
|
866
866
|
}
|
|
867
867
|
const featuredBadge = $('.featured-badge', {});
|
|
868
868
|
const descriptionContent = $('.description-content', {});
|
|
@@ -878,9 +878,9 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
878
878
|
}, featuredBadge, $('.main-content', {}, this.iconWidgetFor(category), titleContent, renderNewBadge ? newBadge : $('.no-badge'), $('a.codicon.codicon-close.hide-category-button', {
|
|
879
879
|
'tabindex': 0,
|
|
880
880
|
'x-dispatch': 'hideCategory:' + category.id,
|
|
881
|
-
'title': ( localize(
|
|
881
|
+
'title': ( localize(7298, "Hide")),
|
|
882
882
|
'role': 'button',
|
|
883
|
-
'aria-label': ( localize(
|
|
883
|
+
'aria-label': ( localize(7299, "Hide")),
|
|
884
884
|
})), descriptionContent, $('.category-progress', { 'x-data-category-id': category.id, }, $('.progress-bar-outer', { 'role': 'progressbar' }, $('.progress-bar-inner'))));
|
|
885
885
|
};
|
|
886
886
|
if (this.gettingStartedList) {
|
|
@@ -906,10 +906,10 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
906
906
|
return rank;
|
|
907
907
|
};
|
|
908
908
|
const gettingStartedList = this.gettingStartedList = ( (new GettingStartedIndexList({
|
|
909
|
-
title: ( localize(
|
|
909
|
+
title: ( localize(7300, "Walkthroughs")),
|
|
910
910
|
klass: 'getting-started',
|
|
911
911
|
limit: 5,
|
|
912
|
-
footer: $('span.button-link.see-all-walkthroughs', { 'x-dispatch': 'seeAllWalkthroughs', 'tabindex': 0 }, ( localize(
|
|
912
|
+
footer: $('span.button-link.see-all-walkthroughs', { 'x-dispatch': 'seeAllWalkthroughs', 'tabindex': 0 }, ( localize(7294, "More..."))),
|
|
913
913
|
renderElement: renderGetttingStaredWalkthrough,
|
|
914
914
|
rankElement: rankWalkthrough,
|
|
915
915
|
contextService: this.contextService,
|
|
@@ -962,10 +962,10 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
962
962
|
bar.style.width = `${progress}%`;
|
|
963
963
|
element.parentElement.classList.toggle('no-progress', stats.stepsComplete === 0);
|
|
964
964
|
if (stats.stepsTotal === stats.stepsComplete) {
|
|
965
|
-
bar.title = ( localize(
|
|
965
|
+
bar.title = ( localize(7301, "All {0} steps complete!", stats.stepsComplete));
|
|
966
966
|
}
|
|
967
967
|
else {
|
|
968
|
-
bar.title = ( localize(
|
|
968
|
+
bar.title = ( localize(7302, "{0} of {1} steps complete", stats.stepsComplete, stats.stepsTotal));
|
|
969
969
|
}
|
|
970
970
|
});
|
|
971
971
|
}
|
|
@@ -1088,7 +1088,7 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
1088
1088
|
if (isCommand) {
|
|
1089
1089
|
const keybinding = this.getKeyBinding(command);
|
|
1090
1090
|
if (keybinding) {
|
|
1091
|
-
const shortcutMessage = $('span.shortcut-message', {}, ( localize(
|
|
1091
|
+
const shortcutMessage = $('span.shortcut-message', {}, ( localize(7303, 'Tip: Use keyboard shortcut ')));
|
|
1092
1092
|
container.appendChild(shortcutMessage);
|
|
1093
1093
|
const label = ( (new KeybindingLabel(shortcutMessage, OS, { ...defaultKeybindingLabelStyles })));
|
|
1094
1094
|
label.set(keybinding);
|
|
@@ -1181,7 +1181,7 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
1181
1181
|
reset(stepTitle, ...renderLabelWithIcons(step.title));
|
|
1182
1182
|
const stepDescription = $('.step-container', {}, stepTitle, container);
|
|
1183
1183
|
if (step.media.type === 'image') {
|
|
1184
|
-
stepDescription.appendChild($('.image-description', { 'aria-label': ( localize(
|
|
1184
|
+
stepDescription.appendChild($('.image-description', { 'aria-label': ( localize(7304, "Image showing {0}", step.media.altText)) }));
|
|
1185
1185
|
}
|
|
1186
1186
|
return $('button.getting-started-step', {
|
|
1187
1187
|
'x-dispatch': 'selectTask:' + step.id,
|
|
@@ -1201,8 +1201,8 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
1201
1201
|
}
|
|
1202
1202
|
}));
|
|
1203
1203
|
const showNextCategory = this.gettingStartedCategories.find(_category => _category.id === category.next);
|
|
1204
|
-
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(
|
|
1205
|
-
? [$('button.button-link.next', { 'x-dispatch': 'nextSection' }, ( localize(
|
|
1204
|
+
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(7305, "Mark Done"))), ...(showNextCategory
|
|
1205
|
+
? [$('button.button-link.next', { 'x-dispatch': 'nextSection' }, ( localize(7306, "Next Section")), $('span.codicon.codicon-arrow-right'))]
|
|
1206
1206
|
: [])));
|
|
1207
1207
|
this.detailsScrollbar = this._register(( (new DomScrollableElement(stepsContainer, { className: 'steps-container' }))));
|
|
1208
1208
|
const stepListComponent = this.detailsScrollbar.getDomNode();
|
|
@@ -1219,12 +1219,12 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
1219
1219
|
}
|
|
1220
1220
|
buildTelemetryFooter(parent) {
|
|
1221
1221
|
const mdRenderer = this.instantiationService.createInstance(MarkdownRenderer, {});
|
|
1222
|
-
const privacyStatementCopy = ( localize(
|
|
1222
|
+
const privacyStatementCopy = ( localize(7307, "privacy statement"));
|
|
1223
1223
|
const privacyStatementButton = `[${privacyStatementCopy}](command:workbench.action.openPrivacyStatementUrl)`;
|
|
1224
|
-
const optOutCopy = ( localize(
|
|
1224
|
+
const optOutCopy = ( localize(7308, "opt out"));
|
|
1225
1225
|
const optOutButton = `[${optOutCopy}](command:settings.filterByTelemetry)`;
|
|
1226
1226
|
const text = ( localize(
|
|
1227
|
-
|
|
1227
|
+
7309,
|
|
1228
1228
|
"{0} collects usage data. Read our {1} and learn how to {2}.",
|
|
1229
1229
|
this.productService.nameShort,
|
|
1230
1230
|
privacyStatementButton,
|
|
@@ -1296,7 +1296,7 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
1296
1296
|
const prevButton = this.container.querySelector('.prev-button.button-link');
|
|
1297
1297
|
prevButton.style.display = this.editorInput.showWelcome || this.prevWalkthrough ? 'block' : 'none';
|
|
1298
1298
|
const moreTextElement = prevButton.querySelector('.moreText');
|
|
1299
|
-
moreTextElement.textContent = firstLaunch ? ( localize(
|
|
1299
|
+
moreTextElement.textContent = firstLaunch ? ( localize(7310, "Welcome")) : ( localize(7284, "Go Back"));
|
|
1300
1300
|
this.container.querySelector('.gettingStartedSlideDetails').querySelectorAll('button').forEach(button => button.disabled = false);
|
|
1301
1301
|
this.container.querySelector('.gettingStartedSlideCategories').querySelectorAll('button').forEach(button => button.disabled = true);
|
|
1302
1302
|
this.container.querySelector('.gettingStartedSlideCategories').querySelectorAll('input').forEach(button => button.disabled = true);
|
|
@@ -64,15 +64,15 @@ class GettingStartedAccessibleProvider extends Disposable {
|
|
|
64
64
|
}
|
|
65
65
|
_getContent(index, waltkrough, step) {
|
|
66
66
|
const stepsContent = ( localize(
|
|
67
|
-
|
|
67
|
+
7317,
|
|
68
68
|
'Step {0}: {1}\nDescription: {2}',
|
|
69
69
|
index,
|
|
70
70
|
step.title,
|
|
71
71
|
step.description.join(' ')
|
|
72
72
|
));
|
|
73
73
|
return [
|
|
74
|
-
( localize(
|
|
75
|
-
( localize(
|
|
74
|
+
( localize(7318, 'Title: {0}', waltkrough.title)),
|
|
75
|
+
( localize(7319, 'Description: {0}', waltkrough.description)),
|
|
76
76
|
stepsContent
|
|
77
77
|
].join('\n\n');
|
|
78
78
|
}
|
package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedColors.js
CHANGED
|
@@ -11,10 +11,10 @@ import 'vscode/vscode/vs/platform/theme/common/colors/quickpickColors';
|
|
|
11
11
|
import 'vscode/vscode/vs/platform/theme/common/colors/searchColors';
|
|
12
12
|
import { localize } from 'vscode/vscode/vs/nls';
|
|
13
13
|
|
|
14
|
-
registerColor('welcomePage.background', null, ( localize(
|
|
15
|
-
registerColor('welcomePage.tileBackground', { dark: editorWidgetBackground, light: editorWidgetBackground, hcDark: '#000', hcLight: editorWidgetBackground }, ( localize(
|
|
16
|
-
registerColor('welcomePage.tileHoverBackground', { dark: ( (lighten(editorWidgetBackground, .2))), light: ( (darken(editorWidgetBackground, .1))), hcDark: null, hcLight: null }, ( localize(
|
|
17
|
-
registerColor('welcomePage.tileBorder', { dark: '#ffffff1a', light: '#0000001a', hcDark: contrastBorder, hcLight: contrastBorder }, ( localize(
|
|
18
|
-
registerColor('welcomePage.progress.background', inputBackground, ( localize(
|
|
19
|
-
registerColor('welcomePage.progress.foreground', textLinkForeground, ( localize(
|
|
20
|
-
registerColor('walkthrough.stepTitle.foreground', { light: '#000000', dark: '#ffffff', hcDark: null, hcLight: null }, ( localize(
|
|
14
|
+
registerColor('welcomePage.background', null, ( localize(10761, 'Background color for the Welcome page.')));
|
|
15
|
+
registerColor('welcomePage.tileBackground', { dark: editorWidgetBackground, light: editorWidgetBackground, hcDark: '#000', hcLight: editorWidgetBackground }, ( localize(10762, 'Background color for the tiles on the Welcome page.')));
|
|
16
|
+
registerColor('welcomePage.tileHoverBackground', { dark: ( (lighten(editorWidgetBackground, .2))), light: ( (darken(editorWidgetBackground, .1))), hcDark: null, hcLight: null }, ( localize(10763, 'Hover background color for the tiles on the Welcome.')));
|
|
17
|
+
registerColor('welcomePage.tileBorder', { dark: '#ffffff1a', light: '#0000001a', hcDark: contrastBorder, hcLight: contrastBorder }, ( localize(10764, 'Border color for the tiles on the Welcome page.')));
|
|
18
|
+
registerColor('welcomePage.progress.background', inputBackground, ( localize(10765, 'Foreground color for the Welcome page progress bars.')));
|
|
19
|
+
registerColor('welcomePage.progress.foreground', textLinkForeground, ( localize(10766, 'Background color for the Welcome page progress bars.')));
|
|
20
|
+
registerColor('walkthrough.stepTitle.foreground', { light: '#000000', dark: '#ffffff', hcDark: null, hcLight: null }, ( localize(10767, 'Foreground color of the heading of each walkthrough step')));
|