@codingame/monaco-vscode-walkthrough-service-override 8.0.2 → 8.0.4
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-walkthrough-service-override",
|
|
3
|
-
"version": "8.0.
|
|
3
|
+
"version": "8.0.4",
|
|
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@8.0.
|
|
29
|
+
"vscode": "npm:@codingame/monaco-vscode-api@8.0.4"
|
|
30
30
|
}
|
|
31
31
|
}
|
|
@@ -124,7 +124,7 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
124
124
|
this.container = $('.gettingStartedContainer', {
|
|
125
125
|
role: 'document',
|
|
126
126
|
tabindex: 0,
|
|
127
|
-
'aria-label': ( localize(
|
|
127
|
+
'aria-label': ( localize(7543, "Overview of how to get up to speed with your editor."))
|
|
128
128
|
});
|
|
129
129
|
this.stepMediaComponent = $('.getting-started-media');
|
|
130
130
|
this.stepMediaComponent.id = generateUuid();
|
|
@@ -401,7 +401,7 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
401
401
|
label: x.title,
|
|
402
402
|
detail: x.description,
|
|
403
403
|
description: x.source,
|
|
404
|
-
})))), { canPickMany: false, matchOnDescription: true, matchOnDetail: true, title: ( localize(
|
|
404
|
+
})))), { canPickMany: false, matchOnDescription: true, matchOnDetail: true, title: ( localize(7544, "Open Walkthrough...")) });
|
|
405
405
|
if (selection) {
|
|
406
406
|
this.runDispatchCommand('selectCategory', selection.id);
|
|
407
407
|
}
|
|
@@ -625,7 +625,7 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
625
625
|
this.categoriesPageScrollbar.dispose();
|
|
626
626
|
}
|
|
627
627
|
this.categoriesSlide = $('.gettingStartedSlideCategories.gettingStartedSlide');
|
|
628
|
-
const prevButton = $('button.prev-button.button-link', { 'x-dispatch': 'scrollPrev' }, $('span.scroll-button.codicon.codicon-chevron-left'), $('span.moreText', {}, ( localize(
|
|
628
|
+
const prevButton = $('button.prev-button.button-link', { 'x-dispatch': 'scrollPrev' }, $('span.scroll-button.codicon.codicon-chevron-left'), $('span.moreText', {}, ( localize(7545, "Welcome"))));
|
|
629
629
|
this.stepsSlide = $('.gettingStartedSlideDetails.gettingStartedSlide', {}, prevButton);
|
|
630
630
|
this.stepsContent = $('.gettingStartedDetailsContent', {});
|
|
631
631
|
this.detailsPageScrollbar = this._register(( (new DomScrollableElement(this.stepsContent, { className: 'full-height-scrollable' }))));
|
|
@@ -646,11 +646,11 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
646
646
|
icon: Codicon.check,
|
|
647
647
|
actionClassName: 'getting-started-checkbox',
|
|
648
648
|
isChecked: this.configurationService.getValue(configurationKey) === 'welcomePage',
|
|
649
|
-
title: ( localize(
|
|
649
|
+
title: ( localize(7546, "When checked, this page will be shown on startup.")),
|
|
650
650
|
...defaultToggleStyles
|
|
651
651
|
})));
|
|
652
652
|
showOnStartupCheckbox.domNode.id = 'showOnStartup';
|
|
653
|
-
const showOnStartupLabel = $('label.caption', { for: 'showOnStartup' }, ( localize(
|
|
653
|
+
const showOnStartupLabel = $('label.caption', { for: 'showOnStartup' }, ( localize(7547, "Show welcome page on startup")));
|
|
654
654
|
const onShowOnStartupChanged = () => {
|
|
655
655
|
if (showOnStartupCheckbox.checked) {
|
|
656
656
|
this.telemetryService.publicLog2('gettingStarted.ActionExecuted', { command: 'showOnStartupChecked', argument: undefined, walkthroughId: this.currentWalkthrough?.id });
|
|
@@ -669,7 +669,7 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
669
669
|
showOnStartupCheckbox.checked = !showOnStartupCheckbox.checked;
|
|
670
670
|
onShowOnStartupChanged();
|
|
671
671
|
}));
|
|
672
|
-
const header = $('.header', {}, $('h1.product-name.caption', {}, this.productService.nameLong), $('p.subtitle.description', {}, ( localize(
|
|
672
|
+
const header = $('.header', {}, $('h1.product-name.caption', {}, this.productService.nameLong), $('p.subtitle.description', {}, ( localize(7548, "Editing evolved"))));
|
|
673
673
|
const leftColumn = $('.categories-column.categories-column-left', {});
|
|
674
674
|
const rightColumn = $('.categories-column.categories-column-right', {});
|
|
675
675
|
const startList = this.buildStartList();
|
|
@@ -763,7 +763,7 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
763
763
|
const link = $('button.button-link');
|
|
764
764
|
link.innerText = name;
|
|
765
765
|
link.title = fullPath;
|
|
766
|
-
link.setAttribute('aria-label', ( localize(
|
|
766
|
+
link.setAttribute('aria-label', ( localize(7549, "Open folder {0} with path {1}", name, parentPath)));
|
|
767
767
|
link.addEventListener('click', e => {
|
|
768
768
|
this.telemetryService.publicLog2('gettingStarted.ActionExecuted', { command: 'openRecent', argument: undefined, walkthroughId: this.currentWalkthrough?.id });
|
|
769
769
|
this.hostService.openWindow([windowOpenable], {
|
|
@@ -786,18 +786,18 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
786
786
|
this.recentlyOpenedList.dispose();
|
|
787
787
|
}
|
|
788
788
|
const recentlyOpenedList = this.recentlyOpenedList = ( (new GettingStartedIndexList({
|
|
789
|
-
title: ( localize(
|
|
789
|
+
title: ( localize(7550, "Recent")),
|
|
790
790
|
klass: 'recently-opened',
|
|
791
791
|
limit: 5,
|
|
792
|
-
empty: $('.empty-recent', {}, ( localize(
|
|
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."))),
|
|
793
793
|
more: $('.more', {}, $('button.button-link', {
|
|
794
794
|
'x-dispatch': 'showMoreRecents',
|
|
795
795
|
title: ( localize(
|
|
796
|
-
|
|
796
|
+
7554,
|
|
797
797
|
"Show All Recent Folders {0}",
|
|
798
798
|
this.getKeybindingLabel(OpenRecentAction.ID)
|
|
799
799
|
))
|
|
800
|
-
}, ( localize(
|
|
800
|
+
}, ( localize(7555, "More...")))),
|
|
801
801
|
renderElement: renderRecent,
|
|
802
802
|
contextService: this.contextService
|
|
803
803
|
})));
|
|
@@ -825,7 +825,7 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
825
825
|
this.startList.dispose();
|
|
826
826
|
}
|
|
827
827
|
const startList = this.startList = ( (new GettingStartedIndexList({
|
|
828
|
-
title: ( localize(
|
|
828
|
+
title: ( localize(7556, "Start")),
|
|
829
829
|
klass: 'start-container',
|
|
830
830
|
limit: 10,
|
|
831
831
|
renderElement: renderStartEntry,
|
|
@@ -841,10 +841,10 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
841
841
|
const renderNewBadge = (category.newItems || category.newEntry) && !category.isFeatured;
|
|
842
842
|
const newBadge = $('.new-badge', {});
|
|
843
843
|
if (category.newEntry) {
|
|
844
|
-
reset(newBadge, $('.new-category', {}, ( localize(
|
|
844
|
+
reset(newBadge, $('.new-category', {}, ( localize(7557, "New"))));
|
|
845
845
|
}
|
|
846
846
|
else if (category.newItems) {
|
|
847
|
-
reset(newBadge, $('.new-items', {}, ( localize(
|
|
847
|
+
reset(newBadge, $('.new-items', {}, ( localize(7558, "Updated"))));
|
|
848
848
|
}
|
|
849
849
|
const featuredBadge = $('.featured-badge', {});
|
|
850
850
|
const descriptionContent = $('.description-content', {});
|
|
@@ -860,9 +860,9 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
860
860
|
}, featuredBadge, $('.main-content', {}, this.iconWidgetFor(category), titleContent, renderNewBadge ? newBadge : $('.no-badge'), $('a.codicon.codicon-close.hide-category-button', {
|
|
861
861
|
'tabindex': 0,
|
|
862
862
|
'x-dispatch': 'hideCategory:' + category.id,
|
|
863
|
-
'title': ( localize(
|
|
863
|
+
'title': ( localize(7559, "Hide")),
|
|
864
864
|
'role': 'button',
|
|
865
|
-
'aria-label': ( localize(
|
|
865
|
+
'aria-label': ( localize(7560, "Hide")),
|
|
866
866
|
})), descriptionContent, $('.category-progress', { 'x-data-category-id': category.id, }, $('.progress-bar-outer', { 'role': 'progressbar' }, $('.progress-bar-inner'))));
|
|
867
867
|
};
|
|
868
868
|
if (this.gettingStartedList) {
|
|
@@ -888,10 +888,10 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
888
888
|
return rank;
|
|
889
889
|
};
|
|
890
890
|
const gettingStartedList = this.gettingStartedList = ( (new GettingStartedIndexList({
|
|
891
|
-
title: ( localize(
|
|
891
|
+
title: ( localize(7561, "Walkthroughs")),
|
|
892
892
|
klass: 'getting-started',
|
|
893
893
|
limit: 5,
|
|
894
|
-
footer: $('span.button-link.see-all-walkthroughs', { 'x-dispatch': 'seeAllWalkthroughs', 'tabindex': 0 }, ( localize(
|
|
894
|
+
footer: $('span.button-link.see-all-walkthroughs', { 'x-dispatch': 'seeAllWalkthroughs', 'tabindex': 0 }, ( localize(7555, "More..."))),
|
|
895
895
|
renderElement: renderGetttingStaredWalkthrough,
|
|
896
896
|
rankElement: rankWalkthrough,
|
|
897
897
|
contextService: this.contextService,
|
|
@@ -944,10 +944,10 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
944
944
|
bar.style.width = `${progress}%`;
|
|
945
945
|
element.parentElement.classList.toggle('no-progress', stats.stepsComplete === 0);
|
|
946
946
|
if (stats.stepsTotal === stats.stepsComplete) {
|
|
947
|
-
bar.title = ( localize(
|
|
947
|
+
bar.title = ( localize(7562, "All {0} steps complete!", stats.stepsComplete));
|
|
948
948
|
}
|
|
949
949
|
else {
|
|
950
|
-
bar.title = ( localize(
|
|
950
|
+
bar.title = ( localize(7563, "{0} of {1} steps complete", stats.stepsComplete, stats.stepsTotal));
|
|
951
951
|
}
|
|
952
952
|
});
|
|
953
953
|
}
|
|
@@ -1069,7 +1069,7 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
1069
1069
|
if (isCommand) {
|
|
1070
1070
|
const keybindingLabel = this.getKeybindingLabel(command);
|
|
1071
1071
|
if (keybindingLabel) {
|
|
1072
|
-
container.appendChild($('span.shortcut-message', {}, ( localize(
|
|
1072
|
+
container.appendChild($('span.shortcut-message', {}, ( localize(7564, 'Tip: Use keyboard shortcut ')), $('span.keybinding', {}, keybindingLabel)));
|
|
1073
1073
|
}
|
|
1074
1074
|
}
|
|
1075
1075
|
this.detailsPageDisposables.add(button);
|
|
@@ -1159,7 +1159,7 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
1159
1159
|
reset(stepTitle, ...renderLabelWithIcons(step.title));
|
|
1160
1160
|
const stepDescription = $('.step-container', {}, stepTitle, container);
|
|
1161
1161
|
if (step.media.type === 'image') {
|
|
1162
|
-
stepDescription.appendChild($('.image-description', { 'aria-label': ( localize(
|
|
1162
|
+
stepDescription.appendChild($('.image-description', { 'aria-label': ( localize(7565, "Image showing {0}", step.media.altText)) }));
|
|
1163
1163
|
}
|
|
1164
1164
|
return $('button.getting-started-step', {
|
|
1165
1165
|
'x-dispatch': 'selectTask:' + step.id,
|
|
@@ -1179,8 +1179,8 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
1179
1179
|
}
|
|
1180
1180
|
}));
|
|
1181
1181
|
const showNextCategory = this.gettingStartedCategories.find(_category => _category.id === category.next);
|
|
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(
|
|
1183
|
-
? [$('button.button-link.next', { 'x-dispatch': 'nextSection' }, ( localize(
|
|
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'))]
|
|
1184
1184
|
: [])));
|
|
1185
1185
|
this.detailsScrollbar = this._register(( (new DomScrollableElement(stepsContainer, { className: 'steps-container' }))));
|
|
1186
1186
|
const stepListComponent = this.detailsScrollbar.getDomNode();
|
|
@@ -1197,12 +1197,12 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
1197
1197
|
}
|
|
1198
1198
|
buildTelemetryFooter(parent) {
|
|
1199
1199
|
const mdRenderer = this.instantiationService.createInstance(MarkdownRenderer, {});
|
|
1200
|
-
const privacyStatementCopy = ( localize(
|
|
1200
|
+
const privacyStatementCopy = ( localize(7568, "privacy statement"));
|
|
1201
1201
|
const privacyStatementButton = `[${privacyStatementCopy}](command:workbench.action.openPrivacyStatementUrl)`;
|
|
1202
|
-
const optOutCopy = ( localize(
|
|
1202
|
+
const optOutCopy = ( localize(7569, "opt out"));
|
|
1203
1203
|
const optOutButton = `[${optOutCopy}](command:settings.filterByTelemetry)`;
|
|
1204
1204
|
const text = ( localize(
|
|
1205
|
-
|
|
1205
|
+
7570,
|
|
1206
1206
|
"{0} collects usage data. Read our {1} and learn how to {2}.",
|
|
1207
1207
|
this.productService.nameShort,
|
|
1208
1208
|
privacyStatementButton,
|