@codingame/monaco-vscode-walkthrough-service-override 7.0.11 → 7.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 +27 -34
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.js +30 -39
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedColors.js +8 -9
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedExtensionPoint.js +57 -93
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedIcons.js +3 -12
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedInput.js +2 -3
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedService._contribution.js +5 -7
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedService.js +6 -7
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/startupPage.js +4 -6
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/common/gettingStartedContent.js +147 -177
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/common/media/notebookProfile.js +4 -5
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/common/media/theme_picker.js +6 -7
- package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/editor/editorWalkThrough.js +4 -9
- package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/walkThrough.contribution.js +3 -4
- package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/walkThroughPart.js +3 -4
- package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/common/walkThroughUtils.js +3 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-walkthrough-service-override",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.1.1",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "CodinGame",
|
|
@@ -26,6 +26,6 @@
|
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"vscode": "npm:@codingame/monaco-vscode-api@7.
|
|
29
|
+
"vscode": "npm:@codingame/monaco-vscode-api@7.1.1"
|
|
30
30
|
}
|
|
31
31
|
}
|
package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.contribution.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
|
|
2
|
-
import {
|
|
2
|
+
import { localize2, localize } from 'vscode/vscode/vs/nls';
|
|
3
3
|
import { GettingStartedInputSerializer, GettingStartedPage, inWelcomeContext } from './gettingStarted.js';
|
|
4
4
|
import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
|
|
5
5
|
import { EditorExtensions } from 'vscode/vscode/vs/workbench/common/editor';
|
|
@@ -32,12 +32,11 @@ import { Categories } from 'vscode/vscode/vs/platform/action/common/actionCommon
|
|
|
32
32
|
import './gettingStartedService._contribution.js';
|
|
33
33
|
import './gettingStartedIcons.js';
|
|
34
34
|
|
|
35
|
-
const _moduleId = "vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.contribution";
|
|
36
35
|
registerAction2(class extends Action2 {
|
|
37
36
|
constructor() {
|
|
38
37
|
super({
|
|
39
38
|
id: 'workbench.action.openWalkthrough',
|
|
40
|
-
title: (
|
|
39
|
+
title: ( localize2(3222, 'Welcome')),
|
|
41
40
|
category: Categories.Help,
|
|
42
41
|
f1: true,
|
|
43
42
|
menu: {
|
|
@@ -46,7 +45,7 @@ registerAction2(class extends Action2 {
|
|
|
46
45
|
order: 1,
|
|
47
46
|
},
|
|
48
47
|
metadata: {
|
|
49
|
-
description: (
|
|
48
|
+
description: ( localize2(3223, 'Opens a Walkthrough to help you get started in VS Code.'))
|
|
50
49
|
}
|
|
51
50
|
});
|
|
52
51
|
}
|
|
@@ -114,15 +113,15 @@ registerAction2(class extends Action2 {
|
|
|
114
113
|
}
|
|
115
114
|
});
|
|
116
115
|
( (Registry.as(EditorExtensions.EditorFactory))).registerEditorSerializer(GettingStartedInput.ID, GettingStartedInputSerializer);
|
|
117
|
-
( (Registry.as(EditorExtensions.EditorPane))).registerEditorPane(EditorPaneDescriptor.create(GettingStartedPage, GettingStartedPage.ID, (
|
|
116
|
+
( (Registry.as(EditorExtensions.EditorPane))).registerEditorPane(EditorPaneDescriptor.create(GettingStartedPage, GettingStartedPage.ID, ( localize(3224, "Welcome"))), [
|
|
118
117
|
( (new SyncDescriptor(GettingStartedInput)))
|
|
119
118
|
]);
|
|
120
|
-
const category = (
|
|
119
|
+
const category = ( localize2(3224, "Welcome"));
|
|
121
120
|
registerAction2(class extends Action2 {
|
|
122
121
|
constructor() {
|
|
123
122
|
super({
|
|
124
123
|
id: 'welcome.goBack',
|
|
125
|
-
title: (
|
|
124
|
+
title: ( localize2(3225, 'Go Back')),
|
|
126
125
|
category,
|
|
127
126
|
keybinding: {
|
|
128
127
|
weight: KeybindingWeight.EditorContrib,
|
|
@@ -158,7 +157,7 @@ registerAction2(class extends Action2 {
|
|
|
158
157
|
constructor() {
|
|
159
158
|
super({
|
|
160
159
|
id: 'welcome.markStepComplete',
|
|
161
|
-
title: (
|
|
160
|
+
title: ( localize(3226, "Mark Step Complete")),
|
|
162
161
|
category,
|
|
163
162
|
});
|
|
164
163
|
}
|
|
@@ -174,7 +173,7 @@ registerAction2(class extends Action2 {
|
|
|
174
173
|
constructor() {
|
|
175
174
|
super({
|
|
176
175
|
id: 'welcome.markStepIncomplete',
|
|
177
|
-
title: (
|
|
176
|
+
title: ( localize(3227, "Mark Step Incomplete")),
|
|
178
177
|
category,
|
|
179
178
|
});
|
|
180
179
|
}
|
|
@@ -190,7 +189,7 @@ registerAction2(class extends Action2 {
|
|
|
190
189
|
constructor() {
|
|
191
190
|
super({
|
|
192
191
|
id: 'welcome.showAllWalkthroughs',
|
|
193
|
-
title: (
|
|
192
|
+
title: ( localize2(3228, 'Open Walkthrough...')),
|
|
194
193
|
category,
|
|
195
194
|
f1: true,
|
|
196
195
|
});
|
|
@@ -218,7 +217,7 @@ registerAction2(class extends Action2 {
|
|
|
218
217
|
quickPick.canSelectMany = false;
|
|
219
218
|
quickPick.matchOnDescription = true;
|
|
220
219
|
quickPick.matchOnDetail = true;
|
|
221
|
-
quickPick.placeholder = (
|
|
220
|
+
quickPick.placeholder = ( localize(3229, 'Select a walkthrough to open'));
|
|
222
221
|
quickPick.items = await this.getQuickPickItems(contextService, gettingStartedService);
|
|
223
222
|
quickPick.busy = true;
|
|
224
223
|
quickPick.onDidAccept(() => {
|
|
@@ -237,9 +236,8 @@ registerAction2(class extends Action2 {
|
|
|
237
236
|
quickPick.busy = false;
|
|
238
237
|
}
|
|
239
238
|
});
|
|
240
|
-
const WorkspacePlatform = ( (new RawContextKey('workspacePlatform', undefined, (
|
|
241
|
-
|
|
242
|
-
8,
|
|
239
|
+
const WorkspacePlatform = ( (new RawContextKey('workspacePlatform', undefined, ( localize(
|
|
240
|
+
3230,
|
|
243
241
|
"The platform of the current workspace, which in remote or serverless contexts may be different from the platform of the UI"
|
|
244
242
|
)))));
|
|
245
243
|
let WorkspacePlatformContribution = class WorkspacePlatformContribution {
|
|
@@ -290,9 +288,8 @@ configurationRegistry.registerConfiguration({
|
|
|
290
288
|
scope: ConfigurationScope.MACHINE,
|
|
291
289
|
type: 'boolean',
|
|
292
290
|
default: true,
|
|
293
|
-
description: (
|
|
294
|
-
|
|
295
|
-
9,
|
|
291
|
+
description: ( localize(
|
|
292
|
+
3231,
|
|
296
293
|
"When enabled, an extension's walkthrough will open upon install of the extension."
|
|
297
294
|
))
|
|
298
295
|
},
|
|
@@ -301,29 +298,25 @@ configurationRegistry.registerConfiguration({
|
|
|
301
298
|
'type': 'string',
|
|
302
299
|
'enum': ['none', 'welcomePage', 'readme', 'newUntitledFile', 'welcomePageInEmptyWorkbench', 'terminal'],
|
|
303
300
|
'enumDescriptions': [
|
|
304
|
-
(
|
|
305
|
-
(
|
|
306
|
-
|
|
307
|
-
11,
|
|
301
|
+
( localize(3232, "Start without an editor.")),
|
|
302
|
+
( localize(
|
|
303
|
+
3233,
|
|
308
304
|
"Open the Welcome page, with content to aid in getting started with VS Code and extensions."
|
|
309
305
|
)),
|
|
310
|
-
(
|
|
311
|
-
|
|
312
|
-
12,
|
|
306
|
+
( localize(
|
|
307
|
+
3234,
|
|
313
308
|
"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."
|
|
314
309
|
)),
|
|
315
|
-
(
|
|
316
|
-
|
|
317
|
-
13,
|
|
310
|
+
( localize(
|
|
311
|
+
3235,
|
|
318
312
|
"Open a new untitled text file (only applies when opening an empty window)."
|
|
319
313
|
)),
|
|
320
|
-
(
|
|
321
|
-
(
|
|
314
|
+
( localize(3236, "Open the Welcome page when opening an empty workbench.")),
|
|
315
|
+
( localize(3237, "Open a new terminal in the editor area.")),
|
|
322
316
|
],
|
|
323
317
|
'default': 'welcomePage',
|
|
324
|
-
'description': (
|
|
325
|
-
|
|
326
|
-
16,
|
|
318
|
+
'description': ( localize(
|
|
319
|
+
3238,
|
|
327
320
|
"Controls which editor is shown at startup, if none are restored from the previous session."
|
|
328
321
|
))
|
|
329
322
|
},
|
|
@@ -331,8 +324,8 @@ configurationRegistry.registerConfiguration({
|
|
|
331
324
|
scope: ConfigurationScope.APPLICATION,
|
|
332
325
|
type: 'boolean',
|
|
333
326
|
default: false,
|
|
334
|
-
deprecationMessage: (
|
|
335
|
-
description: (
|
|
327
|
+
deprecationMessage: ( localize(3239, "Deprecated, use the global `workbench.reduceMotion`.")),
|
|
328
|
+
description: ( localize(3240, "When enabled, reduce motion in welcome page."))
|
|
336
329
|
}
|
|
337
330
|
}
|
|
338
331
|
});
|
|
@@ -23,7 +23,7 @@ import { generateUuid } from 'vscode/vscode/vs/base/common/uuid';
|
|
|
23
23
|
import './media/gettingStarted.css.js';
|
|
24
24
|
import { ILanguageService } from 'vscode/vscode/vs/editor/common/languages/language';
|
|
25
25
|
import { MarkdownRenderer } from 'vscode/vscode/vs/editor/browser/widget/markdownRenderer/browser/markdownRenderer';
|
|
26
|
-
import {
|
|
26
|
+
import { localize } from 'vscode/vscode/vs/nls';
|
|
27
27
|
import { IAccessibilityService } from 'vscode/vscode/vs/platform/accessibility/common/accessibility.service';
|
|
28
28
|
import { ICommandService } from 'vscode/vscode/vs/platform/commands/common/commands.service';
|
|
29
29
|
import { ConfigurationTarget } from 'vscode/vscode/vs/platform/configuration/common/configuration';
|
|
@@ -71,7 +71,6 @@ import { IWorkbenchThemeService } from 'vscode/vscode/vs/workbench/services/them
|
|
|
71
71
|
import { GettingStartedIndexList } from './gettingStartedList.js';
|
|
72
72
|
|
|
73
73
|
var GettingStartedPage_1;
|
|
74
|
-
const _moduleId = "vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted";
|
|
75
74
|
const SLIDE_TRANSITION_TIME_MS = 250;
|
|
76
75
|
const configurationKey = 'workbench.startupEditor';
|
|
77
76
|
const allWalkthroughsHiddenContext = ( (new RawContextKey('allWalkthroughsHidden', false)));
|
|
@@ -125,7 +124,7 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
125
124
|
this.container = $('.gettingStartedContainer', {
|
|
126
125
|
role: 'document',
|
|
127
126
|
tabindex: 0,
|
|
128
|
-
'aria-label': (
|
|
127
|
+
'aria-label': ( localize(7543, "Overview of how to get up to speed with your editor."))
|
|
129
128
|
});
|
|
130
129
|
this.stepMediaComponent = $('.getting-started-media');
|
|
131
130
|
this.stepMediaComponent.id = generateUuid();
|
|
@@ -402,7 +401,7 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
402
401
|
label: x.title,
|
|
403
402
|
detail: x.description,
|
|
404
403
|
description: x.source,
|
|
405
|
-
})))), { canPickMany: false, matchOnDescription: true, matchOnDetail: true, title: (
|
|
404
|
+
})))), { canPickMany: false, matchOnDescription: true, matchOnDetail: true, title: ( localize(7544, "Open Walkthrough...")) });
|
|
406
405
|
if (selection) {
|
|
407
406
|
this.runDispatchCommand('selectCategory', selection.id);
|
|
408
407
|
}
|
|
@@ -626,7 +625,7 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
626
625
|
this.categoriesPageScrollbar.dispose();
|
|
627
626
|
}
|
|
628
627
|
this.categoriesSlide = $('.gettingStartedSlideCategories.gettingStartedSlide');
|
|
629
|
-
const prevButton = $('button.prev-button.button-link', { 'x-dispatch': 'scrollPrev' }, $('span.scroll-button.codicon.codicon-chevron-left'), $('span.moreText', {}, (
|
|
628
|
+
const prevButton = $('button.prev-button.button-link', { 'x-dispatch': 'scrollPrev' }, $('span.scroll-button.codicon.codicon-chevron-left'), $('span.moreText', {}, ( localize(7545, "Welcome"))));
|
|
630
629
|
this.stepsSlide = $('.gettingStartedSlideDetails.gettingStartedSlide', {}, prevButton);
|
|
631
630
|
this.stepsContent = $('.gettingStartedDetailsContent', {});
|
|
632
631
|
this.detailsPageScrollbar = this._register(( (new DomScrollableElement(this.stepsContent, { className: 'full-height-scrollable' }))));
|
|
@@ -647,11 +646,11 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
647
646
|
icon: Codicon.check,
|
|
648
647
|
actionClassName: 'getting-started-checkbox',
|
|
649
648
|
isChecked: this.configurationService.getValue(configurationKey) === 'welcomePage',
|
|
650
|
-
title: (
|
|
649
|
+
title: ( localize(7546, "When checked, this page will be shown on startup.")),
|
|
651
650
|
...defaultToggleStyles
|
|
652
651
|
})));
|
|
653
652
|
showOnStartupCheckbox.domNode.id = 'showOnStartup';
|
|
654
|
-
const showOnStartupLabel = $('label.caption', { for: 'showOnStartup' }, (
|
|
653
|
+
const showOnStartupLabel = $('label.caption', { for: 'showOnStartup' }, ( localize(7547, "Show welcome page on startup")));
|
|
655
654
|
const onShowOnStartupChanged = () => {
|
|
656
655
|
if (showOnStartupCheckbox.checked) {
|
|
657
656
|
this.telemetryService.publicLog2('gettingStarted.ActionExecuted', { command: 'showOnStartupChecked', argument: undefined, walkthroughId: this.currentWalkthrough?.id });
|
|
@@ -670,7 +669,7 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
670
669
|
showOnStartupCheckbox.checked = !showOnStartupCheckbox.checked;
|
|
671
670
|
onShowOnStartupChanged();
|
|
672
671
|
}));
|
|
673
|
-
const header = $('.header', {}, $('h1.product-name.caption', {}, this.productService.nameLong), $('p.subtitle.description', {}, (
|
|
672
|
+
const header = $('.header', {}, $('h1.product-name.caption', {}, this.productService.nameLong), $('p.subtitle.description', {}, ( localize(7548, "Editing evolved"))));
|
|
674
673
|
const leftColumn = $('.categories-column.categories-column-left', {});
|
|
675
674
|
const rightColumn = $('.categories-column.categories-column-right', {});
|
|
676
675
|
const startList = this.buildStartList();
|
|
@@ -764,7 +763,7 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
764
763
|
const link = $('button.button-link');
|
|
765
764
|
link.innerText = name;
|
|
766
765
|
link.title = fullPath;
|
|
767
|
-
link.setAttribute('aria-label', (
|
|
766
|
+
link.setAttribute('aria-label', ( localize(7549, "Open folder {0} with path {1}", name, parentPath)));
|
|
768
767
|
link.addEventListener('click', e => {
|
|
769
768
|
this.telemetryService.publicLog2('gettingStarted.ActionExecuted', { command: 'openRecent', argument: undefined, walkthroughId: this.currentWalkthrough?.id });
|
|
770
769
|
this.hostService.openWindow([windowOpenable], {
|
|
@@ -787,19 +786,18 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
787
786
|
this.recentlyOpenedList.dispose();
|
|
788
787
|
}
|
|
789
788
|
const recentlyOpenedList = this.recentlyOpenedList = ( (new GettingStartedIndexList({
|
|
790
|
-
title: (
|
|
789
|
+
title: ( localize(7550, "Recent")),
|
|
791
790
|
klass: 'recently-opened',
|
|
792
791
|
limit: 5,
|
|
793
|
-
empty: $('.empty-recent', {}, (
|
|
792
|
+
empty: $('.empty-recent', {}, ( localize(7551, "You have no recent folders,")), $('button.button-link', { 'x-dispatch': 'openFolder' }, ( localize(7552, "open a folder"))), ( localize(7553, "to start."))),
|
|
794
793
|
more: $('.more', {}, $('button.button-link', {
|
|
795
794
|
'x-dispatch': 'showMoreRecents',
|
|
796
|
-
title: (
|
|
797
|
-
|
|
798
|
-
11,
|
|
795
|
+
title: ( localize(
|
|
796
|
+
7554,
|
|
799
797
|
"Show All Recent Folders {0}",
|
|
800
798
|
this.getKeybindingLabel(OpenRecentAction.ID)
|
|
801
799
|
))
|
|
802
|
-
}, (
|
|
800
|
+
}, ( localize(7555, "More...")))),
|
|
803
801
|
renderElement: renderRecent,
|
|
804
802
|
contextService: this.contextService
|
|
805
803
|
})));
|
|
@@ -827,7 +825,7 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
827
825
|
this.startList.dispose();
|
|
828
826
|
}
|
|
829
827
|
const startList = this.startList = ( (new GettingStartedIndexList({
|
|
830
|
-
title: (
|
|
828
|
+
title: ( localize(7556, "Start")),
|
|
831
829
|
klass: 'start-container',
|
|
832
830
|
limit: 10,
|
|
833
831
|
renderElement: renderStartEntry,
|
|
@@ -843,10 +841,10 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
843
841
|
const renderNewBadge = (category.newItems || category.newEntry) && !category.isFeatured;
|
|
844
842
|
const newBadge = $('.new-badge', {});
|
|
845
843
|
if (category.newEntry) {
|
|
846
|
-
reset(newBadge, $('.new-category', {}, (
|
|
844
|
+
reset(newBadge, $('.new-category', {}, ( localize(7557, "New"))));
|
|
847
845
|
}
|
|
848
846
|
else if (category.newItems) {
|
|
849
|
-
reset(newBadge, $('.new-items', {}, (
|
|
847
|
+
reset(newBadge, $('.new-items', {}, ( localize(7558, "Updated"))));
|
|
850
848
|
}
|
|
851
849
|
const featuredBadge = $('.featured-badge', {});
|
|
852
850
|
const descriptionContent = $('.description-content', {});
|
|
@@ -862,9 +860,9 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
862
860
|
}, featuredBadge, $('.main-content', {}, this.iconWidgetFor(category), titleContent, renderNewBadge ? newBadge : $('.no-badge'), $('a.codicon.codicon-close.hide-category-button', {
|
|
863
861
|
'tabindex': 0,
|
|
864
862
|
'x-dispatch': 'hideCategory:' + category.id,
|
|
865
|
-
'title': (
|
|
863
|
+
'title': ( localize(7559, "Hide")),
|
|
866
864
|
'role': 'button',
|
|
867
|
-
'aria-label': (
|
|
865
|
+
'aria-label': ( localize(7560, "Hide")),
|
|
868
866
|
})), descriptionContent, $('.category-progress', { 'x-data-category-id': category.id, }, $('.progress-bar-outer', { 'role': 'progressbar' }, $('.progress-bar-inner'))));
|
|
869
867
|
};
|
|
870
868
|
if (this.gettingStartedList) {
|
|
@@ -890,10 +888,10 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
890
888
|
return rank;
|
|
891
889
|
};
|
|
892
890
|
const gettingStartedList = this.gettingStartedList = ( (new GettingStartedIndexList({
|
|
893
|
-
title: (
|
|
891
|
+
title: ( localize(7561, "Walkthroughs")),
|
|
894
892
|
klass: 'getting-started',
|
|
895
893
|
limit: 5,
|
|
896
|
-
footer: $('span.button-link.see-all-walkthroughs', { 'x-dispatch': 'seeAllWalkthroughs', 'tabindex': 0 }, (
|
|
894
|
+
footer: $('span.button-link.see-all-walkthroughs', { 'x-dispatch': 'seeAllWalkthroughs', 'tabindex': 0 }, ( localize(7561, "More..."))),
|
|
897
895
|
renderElement: renderGetttingStaredWalkthrough,
|
|
898
896
|
rankElement: rankWalkthrough,
|
|
899
897
|
contextService: this.contextService,
|
|
@@ -946,16 +944,10 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
946
944
|
bar.style.width = `${progress}%`;
|
|
947
945
|
element.parentElement.classList.toggle('no-progress', stats.stepsComplete === 0);
|
|
948
946
|
if (stats.stepsTotal === stats.stepsComplete) {
|
|
949
|
-
bar.title = (
|
|
947
|
+
bar.title = ( localize(7562, "All {0} steps complete!", stats.stepsComplete));
|
|
950
948
|
}
|
|
951
949
|
else {
|
|
952
|
-
bar.title = (
|
|
953
|
-
_moduleId,
|
|
954
|
-
20,
|
|
955
|
-
"{0} of {1} steps complete",
|
|
956
|
-
stats.stepsComplete,
|
|
957
|
-
stats.stepsTotal
|
|
958
|
-
));
|
|
950
|
+
bar.title = ( localize(7563, "{0} of {1} steps complete", stats.stepsComplete, stats.stepsTotal));
|
|
959
951
|
}
|
|
960
952
|
});
|
|
961
953
|
}
|
|
@@ -1077,7 +1069,7 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
1077
1069
|
if (isCommand) {
|
|
1078
1070
|
const keybindingLabel = this.getKeybindingLabel(command);
|
|
1079
1071
|
if (keybindingLabel) {
|
|
1080
|
-
container.appendChild($('span.shortcut-message', {}, (
|
|
1072
|
+
container.appendChild($('span.shortcut-message', {}, ( localize(7564, 'Tip: Use keyboard shortcut ')), $('span.keybinding', {}, keybindingLabel)));
|
|
1081
1073
|
}
|
|
1082
1074
|
}
|
|
1083
1075
|
this.detailsPageDisposables.add(button);
|
|
@@ -1167,7 +1159,7 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
1167
1159
|
reset(stepTitle, ...renderLabelWithIcons(step.title));
|
|
1168
1160
|
const stepDescription = $('.step-container', {}, stepTitle, container);
|
|
1169
1161
|
if (step.media.type === 'image') {
|
|
1170
|
-
stepDescription.appendChild($('.image-description', { 'aria-label': (
|
|
1162
|
+
stepDescription.appendChild($('.image-description', { 'aria-label': ( localize(7565, "Image showing {0}", step.media.altText)) }));
|
|
1171
1163
|
}
|
|
1172
1164
|
return $('button.getting-started-step', {
|
|
1173
1165
|
'x-dispatch': 'selectTask:' + step.id,
|
|
@@ -1187,8 +1179,8 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
1187
1179
|
}
|
|
1188
1180
|
}));
|
|
1189
1181
|
const showNextCategory = this.gettingStartedCategories.find(_category => _category.id === category.next);
|
|
1190
|
-
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'), (
|
|
1191
|
-
? [$('button.button-link.next', { 'x-dispatch': 'nextSection' }, (
|
|
1182
|
+
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(7566, "Mark Done"))), ...(showNextCategory
|
|
1183
|
+
? [$('button.button-link.next', { 'x-dispatch': 'nextSection' }, ( localize(7567, "Next Section")), $('span.codicon.codicon-arrow-right'))]
|
|
1192
1184
|
: [])));
|
|
1193
1185
|
this.detailsScrollbar = this._register(( (new DomScrollableElement(stepsContainer, { className: 'steps-container' }))));
|
|
1194
1186
|
const stepListComponent = this.detailsScrollbar.getDomNode();
|
|
@@ -1205,13 +1197,12 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
1205
1197
|
}
|
|
1206
1198
|
buildTelemetryFooter(parent) {
|
|
1207
1199
|
const mdRenderer = this.instantiationService.createInstance(MarkdownRenderer, {});
|
|
1208
|
-
const privacyStatementCopy = (
|
|
1200
|
+
const privacyStatementCopy = ( localize(7568, "privacy statement"));
|
|
1209
1201
|
const privacyStatementButton = `[${privacyStatementCopy}](command:workbench.action.openPrivacyStatementUrl)`;
|
|
1210
|
-
const optOutCopy = (
|
|
1202
|
+
const optOutCopy = ( localize(7569, "opt out"));
|
|
1211
1203
|
const optOutButton = `[${optOutCopy}](command:settings.filterByTelemetry)`;
|
|
1212
|
-
const text = (
|
|
1213
|
-
|
|
1214
|
-
27,
|
|
1204
|
+
const text = ( localize(
|
|
1205
|
+
7570,
|
|
1215
1206
|
"{0} collects usage data. Read our {1} and learn how to {2}.",
|
|
1216
1207
|
this.productService.nameShort,
|
|
1217
1208
|
privacyStatementButton,
|
package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedColors.js
CHANGED
|
@@ -9,13 +9,12 @@ import 'vscode/vscode/vs/platform/theme/common/colors/minimapColors';
|
|
|
9
9
|
import 'vscode/vscode/vs/platform/theme/common/colors/miscColors';
|
|
10
10
|
import 'vscode/vscode/vs/platform/theme/common/colors/quickpickColors';
|
|
11
11
|
import 'vscode/vscode/vs/platform/theme/common/colors/searchColors';
|
|
12
|
-
import {
|
|
12
|
+
import { localize } from 'vscode/vscode/vs/nls';
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
registerColor('welcomePage.
|
|
16
|
-
registerColor('welcomePage.
|
|
17
|
-
registerColor('welcomePage.
|
|
18
|
-
registerColor('welcomePage.
|
|
19
|
-
registerColor('welcomePage.progress.
|
|
20
|
-
registerColor('
|
|
21
|
-
registerColor('walkthrough.stepTitle.foreground', { light: '#000000', dark: '#ffffff', hcDark: null, hcLight: null }, ( localizeWithPath(_moduleId, 6, 'Foreground color of the heading of each walkthrough step')));
|
|
14
|
+
registerColor('welcomePage.background', null, ( localize(10607, 'Background color for the Welcome page.')));
|
|
15
|
+
registerColor('welcomePage.tileBackground', { dark: editorWidgetBackground, light: editorWidgetBackground, hcDark: '#000', hcLight: editorWidgetBackground }, ( localize(10608, '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(10609, 'Hover background color for the tiles on the Welcome.')));
|
|
17
|
+
registerColor('welcomePage.tileBorder', { dark: '#ffffff1a', light: '#0000001a', hcDark: contrastBorder, hcLight: contrastBorder }, ( localize(10610, 'Border color for the tiles on the Welcome page.')));
|
|
18
|
+
registerColor('welcomePage.progress.background', inputBackground, ( localize(10611, 'Foreground color for the Welcome page progress bars.')));
|
|
19
|
+
registerColor('welcomePage.progress.foreground', textLinkForeground, ( localize(10612, 'Background color for the Welcome page progress bars.')));
|
|
20
|
+
registerColor('walkthrough.stepTitle.foreground', { light: '#000000', dark: '#ffffff', hcDark: null, hcLight: null }, ( localize(10613, 'Foreground color of the heading of each walkthrough step')));
|