@codingame/monaco-vscode-walkthrough-service-override 31.0.0 → 32.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsBanner.d.ts +4 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsBanner.js +9 -5
- package/vscode/src/vs/workbench/contrib/welcomeAgentSessions/browser/agentSessionsWelcome.js +14 -14
- package/vscode/src/vs/workbench/contrib/welcomeAgentSessions/browser/agentSessionsWelcomeInput.js +1 -1
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.contribution.js +26 -22
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.js +46 -43
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedAccessibleView.js +2 -2
- 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/media/gettingStarted.css +1 -0
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/startupPage.js +2 -2
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/common/gettingStartedContent.js +152 -152
- 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/welcomeGettingStarted/common/media/theme_picker_small.js +4 -4
- 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
|
@@ -73,6 +73,7 @@ import { IHostService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/s
|
|
|
73
73
|
import { IWorkbenchThemeService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/themes/common/workbenchThemeService.service';
|
|
74
74
|
import { GettingStartedIndexList } from './gettingStartedList.js';
|
|
75
75
|
import { canShowAgentsBanner, createAgentsBanner } from '../../chat/browser/agentSessions/agentSessionsBanner.js';
|
|
76
|
+
import { IChatEntitlementService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/chat/common/chatEntitlementService.service';
|
|
76
77
|
import { AccessibilityVerbositySettingId } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration';
|
|
77
78
|
import { AccessibleViewAction } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/accessibility/browser/accessibleViewActions';
|
|
78
79
|
import { KeybindingLabel } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/keybindingLabel/keybindingLabel';
|
|
@@ -132,7 +133,8 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
132
133
|
webviewService,
|
|
133
134
|
workspaceContextService,
|
|
134
135
|
accessibilityService,
|
|
135
|
-
markdownRendererService
|
|
136
|
+
markdownRendererService,
|
|
137
|
+
chatEntitlementService
|
|
136
138
|
) {
|
|
137
139
|
super(
|
|
138
140
|
GettingStartedPage_1.ID,
|
|
@@ -163,6 +165,7 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
163
165
|
this.workspaceContextService = workspaceContextService;
|
|
164
166
|
this.accessibilityService = accessibilityService;
|
|
165
167
|
this.markdownRendererService = markdownRendererService;
|
|
168
|
+
this.chatEntitlementService = chatEntitlementService;
|
|
166
169
|
this.inProgressScroll = Promise.resolve();
|
|
167
170
|
this.dispatchListeners = ( new DisposableStore());
|
|
168
171
|
this.stepDisposables = ( new DisposableStore());
|
|
@@ -175,7 +178,7 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
175
178
|
this.container = $(".gettingStartedContainer", {
|
|
176
179
|
role: "document",
|
|
177
180
|
tabindex: 0,
|
|
178
|
-
"aria-label": ( localize(
|
|
181
|
+
"aria-label": ( localize(15695, "Overview of how to get up to speed with your editor."))
|
|
179
182
|
});
|
|
180
183
|
this.stepMediaComponent = $(".getting-started-media");
|
|
181
184
|
this.stepMediaComponent.id = generateUuid();
|
|
@@ -249,17 +252,17 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
249
252
|
badgeelement.parentElement?.setAttribute("aria-checked", "true");
|
|
250
253
|
badgeelement.classList.remove(...ThemeIcon.asClassNameArray(gettingStartedUncheckedCodicon));
|
|
251
254
|
badgeelement.classList.add("complete", ...ThemeIcon.asClassNameArray(gettingStartedCheckedCodicon));
|
|
252
|
-
badgeelement.setAttribute("aria-label", ( localize(
|
|
255
|
+
badgeelement.setAttribute("aria-label", ( localize(15696, "{0}: Completed", step.title)));
|
|
253
256
|
} else {
|
|
254
257
|
badgeelement.setAttribute("aria-checked", "false");
|
|
255
258
|
badgeelement.parentElement?.setAttribute("aria-checked", "false");
|
|
256
259
|
badgeelement.classList.remove("complete", ...ThemeIcon.asClassNameArray(gettingStartedCheckedCodicon));
|
|
257
260
|
badgeelement.classList.add(...ThemeIcon.asClassNameArray(gettingStartedUncheckedCodicon));
|
|
258
|
-
badgeelement.setAttribute("aria-label", ( localize(
|
|
261
|
+
badgeelement.setAttribute("aria-label", ( localize(15697, "{0}: Not completed", step.title)));
|
|
259
262
|
}
|
|
260
263
|
});
|
|
261
264
|
if (step.done) {
|
|
262
|
-
status(( localize(
|
|
265
|
+
status(( localize(15698, "Step {0} completed", step.title)));
|
|
263
266
|
}
|
|
264
267
|
}
|
|
265
268
|
this.updateCategoryProgress();
|
|
@@ -516,7 +519,7 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
516
519
|
canPickMany: false,
|
|
517
520
|
matchOnDescription: true,
|
|
518
521
|
matchOnDetail: true,
|
|
519
|
-
title: ( localize(
|
|
522
|
+
title: ( localize(15699, "Open Walkthrough..."))
|
|
520
523
|
});
|
|
521
524
|
if (selection) {
|
|
522
525
|
this.runDispatchCommand("selectCategory", selection.id);
|
|
@@ -747,7 +750,7 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
747
750
|
const themeType = this.themeService.getColorTheme().type;
|
|
748
751
|
const videoPath = media.path[themeType];
|
|
749
752
|
const videoPoster = media.poster ? media.poster[themeType] : undefined;
|
|
750
|
-
const altText = media.altText ? media.altText : ( localize(
|
|
753
|
+
const altText = media.altText ? media.altText : ( localize(15700, "Video for {0}", stepToExpand.title));
|
|
751
754
|
const rawHTML = await this.detailsRenderer.renderVideo(videoPath, videoPoster, altText);
|
|
752
755
|
this.webview.setHtml(rawHTML);
|
|
753
756
|
let isDisposed = false;
|
|
@@ -779,8 +782,8 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
779
782
|
provideScreenReaderUpdate() {
|
|
780
783
|
if (this.configurationService.getValue(AccessibilityVerbositySettingId.Walkthrough)) {
|
|
781
784
|
const kbLabel = this.keybindingService.lookupKeybinding(AccessibleViewAction.id)?.getAriaLabel();
|
|
782
|
-
return kbLabel ? ( localize(
|
|
783
|
-
|
|
785
|
+
return kbLabel ? ( localize(15701, "Inspect this in the accessible view ({0}).\n", kbLabel)) : ( localize(
|
|
786
|
+
15702,
|
|
784
787
|
"Inspect this in the accessible view via the command Open Accessible View which is currently not triggerable via keybinding.\n"
|
|
785
788
|
));
|
|
786
789
|
}
|
|
@@ -849,7 +852,7 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
849
852
|
this.categoriesSlide = $(".gettingStartedSlideCategories.gettingStartedSlide");
|
|
850
853
|
const prevButton = $("button.prev-button.button-link", {
|
|
851
854
|
"x-dispatch": "scrollPrev"
|
|
852
|
-
}, $("span.scroll-button.codicon.codicon-chevron-left"), $("span.moreText", {}, ( localize(
|
|
855
|
+
}, $("span.scroll-button.codicon.codicon-chevron-left"), $("span.moreText", {}, ( localize(15703, "Go Back"))));
|
|
853
856
|
this.stepsSlide = $(".gettingStartedSlideDetails.gettingStartedSlide", {}, prevButton);
|
|
854
857
|
this.stepsContent = $(".gettingStartedDetailsContent", {});
|
|
855
858
|
this.detailsPageScrollbar = this._register(( new DomScrollableElement(this.stepsContent, {
|
|
@@ -878,13 +881,13 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
878
881
|
icon: Codicon.check,
|
|
879
882
|
actionClassName: "getting-started-checkbox",
|
|
880
883
|
isChecked: this.configurationService.getValue(configurationKey) === "welcomePage",
|
|
881
|
-
title: ( localize(
|
|
884
|
+
title: ( localize(15704, "When checked, this page will be shown on startup.")),
|
|
882
885
|
...defaultToggleStyles
|
|
883
886
|
}));
|
|
884
887
|
showOnStartupCheckbox.domNode.id = "showOnStartup";
|
|
885
888
|
const showOnStartupLabel = $("label.caption", {
|
|
886
889
|
for: "showOnStartup"
|
|
887
|
-
}, ( localize(
|
|
890
|
+
}, ( localize(15705, "Show welcome page on startup")));
|
|
888
891
|
const onShowOnStartupChanged = () => {
|
|
889
892
|
if (showOnStartupCheckbox.checked) {
|
|
890
893
|
this.telemetryService.publicLog2("gettingStarted.ActionExecuted", {
|
|
@@ -914,7 +917,7 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
914
917
|
".header",
|
|
915
918
|
{},
|
|
916
919
|
$("h1.product-name.caption", {}, this.productService.nameLong),
|
|
917
|
-
$("p.subtitle.description", {}, ( localize(
|
|
920
|
+
$("p.subtitle.description", {}, ( localize(15706, "Editing evolved")))
|
|
918
921
|
);
|
|
919
922
|
const leftColumn = $(".categories-column.categories-column-left", {});
|
|
920
923
|
const rightColumn = $(".categories-column.categories-column-right", {});
|
|
@@ -922,7 +925,7 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
922
925
|
const recentList = this.buildRecentlyOpenedList();
|
|
923
926
|
const gettingStartedList = this.buildGettingStartedWalkthroughsList();
|
|
924
927
|
const footerChildren = [];
|
|
925
|
-
if (canShowAgentsBanner(this.
|
|
928
|
+
if (canShowAgentsBanner(this.chatEntitlementService)) {
|
|
926
929
|
const agentsBanner = createAgentsBanner({
|
|
927
930
|
cssClass: "getting-started-category.agents-banner",
|
|
928
931
|
source: "welcomePage"
|
|
@@ -1037,7 +1040,7 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
1037
1040
|
const link = $("button.button-link");
|
|
1038
1041
|
link.innerText = name;
|
|
1039
1042
|
link.title = fullPath;
|
|
1040
|
-
link.setAttribute("aria-label", ( localize(
|
|
1043
|
+
link.setAttribute("aria-label", ( localize(15707, "Open folder {0} with path {1}", name, parentPath)));
|
|
1041
1044
|
link.addEventListener("click", e => {
|
|
1042
1045
|
this.telemetryService.publicLog2("gettingStarted.ActionExecuted", {
|
|
1043
1046
|
command: "openRecent",
|
|
@@ -1063,8 +1066,8 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
1063
1066
|
{
|
|
1064
1067
|
"tabindex": 0,
|
|
1065
1068
|
"role": "button",
|
|
1066
|
-
"title": ( localize(
|
|
1067
|
-
"aria-label": ( localize(
|
|
1069
|
+
"title": ( localize(15708, "Remove from Recently Opened")),
|
|
1070
|
+
"aria-label": ( localize(15709, "Remove {0} from Recently Opened", name))
|
|
1068
1071
|
}
|
|
1069
1072
|
);
|
|
1070
1073
|
const handleDelete = async e => {
|
|
@@ -1086,20 +1089,20 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
1086
1089
|
this.recentlyOpenedList.dispose();
|
|
1087
1090
|
}
|
|
1088
1091
|
const recentlyOpenedList = this.recentlyOpenedList = ( new GettingStartedIndexList({
|
|
1089
|
-
title: ( localize(
|
|
1092
|
+
title: ( localize(15710, "Recent")),
|
|
1090
1093
|
klass: "recently-opened",
|
|
1091
1094
|
limit: 5,
|
|
1092
|
-
empty: $(".empty-recent", {}, ( localize(
|
|
1095
|
+
empty: $(".empty-recent", {}, ( localize(15711, "You have no recent folders,")), $("button.button-link", {
|
|
1093
1096
|
"x-dispatch": "openFolder"
|
|
1094
|
-
}, ( localize(
|
|
1097
|
+
}, ( localize(15712, "open a folder"))), ( localize(15713, "to start."))),
|
|
1095
1098
|
more: $(".more", {}, $("button.button-link", {
|
|
1096
1099
|
"x-dispatch": "showMoreRecents",
|
|
1097
1100
|
title: ( localize(
|
|
1098
|
-
|
|
1101
|
+
15714,
|
|
1099
1102
|
"Show All Recent Folders {0}",
|
|
1100
1103
|
this.getKeybindingLabel(OpenRecentAction.ID)
|
|
1101
1104
|
))
|
|
1102
|
-
}, ( localize(
|
|
1105
|
+
}, ( localize(15715, "More...")))),
|
|
1103
1106
|
renderElement: renderRecent,
|
|
1104
1107
|
contextService: this.contextService
|
|
1105
1108
|
}));
|
|
@@ -1148,7 +1151,7 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
1148
1151
|
this.startList.dispose();
|
|
1149
1152
|
}
|
|
1150
1153
|
const startList = this.startList = ( new GettingStartedIndexList({
|
|
1151
|
-
title: ( localize(
|
|
1154
|
+
title: ( localize(15716, "Start")),
|
|
1152
1155
|
klass: "start-container",
|
|
1153
1156
|
limit: 10,
|
|
1154
1157
|
renderElement: renderStartEntry,
|
|
@@ -1164,9 +1167,9 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
1164
1167
|
const renderNewBadge = (category.newItems || category.newEntry) && !category.isFeatured;
|
|
1165
1168
|
const newBadge = $(".new-badge", {});
|
|
1166
1169
|
if (category.newEntry) {
|
|
1167
|
-
reset(newBadge, $(".new-category", {}, ( localize(
|
|
1170
|
+
reset(newBadge, $(".new-category", {}, ( localize(15717, "New"))));
|
|
1168
1171
|
} else if (category.newItems) {
|
|
1169
|
-
reset(newBadge, $(".new-items", {}, ( localize(
|
|
1172
|
+
reset(newBadge, $(".new-items", {}, ( localize(15718, "Updated"))));
|
|
1170
1173
|
}
|
|
1171
1174
|
const featuredBadge = $(".featured-badge", {});
|
|
1172
1175
|
const descriptionContent = $(".description-content", {});
|
|
@@ -1197,9 +1200,9 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
1197
1200
|
$("a.codicon.codicon-close.hide-category-button", {
|
|
1198
1201
|
"tabindex": 0,
|
|
1199
1202
|
"x-dispatch": "hideCategory:" + category.id,
|
|
1200
|
-
"title": ( localize(
|
|
1203
|
+
"title": ( localize(15719, "Hide")),
|
|
1201
1204
|
"role": "button",
|
|
1202
|
-
"aria-label": ( localize(
|
|
1205
|
+
"aria-label": ( localize(15720, "Hide"))
|
|
1203
1206
|
})
|
|
1204
1207
|
),
|
|
1205
1208
|
descriptionContent,
|
|
@@ -1233,13 +1236,13 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
1233
1236
|
return rank;
|
|
1234
1237
|
};
|
|
1235
1238
|
const gettingStartedList = this.gettingStartedList = ( new GettingStartedIndexList({
|
|
1236
|
-
title: ( localize(
|
|
1239
|
+
title: ( localize(15721, "Walkthroughs")),
|
|
1237
1240
|
klass: "getting-started",
|
|
1238
1241
|
limit: 5,
|
|
1239
1242
|
footer: $("span.button-link.see-all-walkthroughs", {
|
|
1240
1243
|
"x-dispatch": "seeAllWalkthroughs",
|
|
1241
1244
|
"tabindex": 0
|
|
1242
|
-
}, ( localize(
|
|
1245
|
+
}, ( localize(15715, "More..."))),
|
|
1243
1246
|
renderElement: renderGetttingStaredWalkthrough,
|
|
1244
1247
|
rankElement: rankWalkthrough,
|
|
1245
1248
|
contextService: this.contextService
|
|
@@ -1281,7 +1284,7 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
1281
1284
|
const categoryID = element.getAttribute("x-data-category-id");
|
|
1282
1285
|
const category = this.gettingStartedCategories.find(c => c.id === categoryID);
|
|
1283
1286
|
if (!category) {
|
|
1284
|
-
|
|
1287
|
+
return;
|
|
1285
1288
|
}
|
|
1286
1289
|
const stats = this.getWalkthroughCompletionStats(category);
|
|
1287
1290
|
const bar = assertReturnsDefined(element.querySelector(".progress-bar-inner"));
|
|
@@ -1292,9 +1295,9 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
1292
1295
|
bar.style.width = `${progress}%`;
|
|
1293
1296
|
element.parentElement.classList.toggle("no-progress", stats.stepsComplete === 0);
|
|
1294
1297
|
if (stats.stepsTotal === stats.stepsComplete) {
|
|
1295
|
-
bar.title = ( localize(
|
|
1298
|
+
bar.title = ( localize(15722, "All {0} steps complete!", stats.stepsComplete));
|
|
1296
1299
|
} else {
|
|
1297
|
-
bar.title = ( localize(
|
|
1300
|
+
bar.title = ( localize(15723, "{0} of {1} steps complete", stats.stepsComplete, stats.stepsTotal));
|
|
1298
1301
|
}
|
|
1299
1302
|
});
|
|
1300
1303
|
}
|
|
@@ -1445,7 +1448,7 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
1445
1448
|
if (isCommand) {
|
|
1446
1449
|
const keybinding = this.getKeyBinding(command);
|
|
1447
1450
|
if (keybinding) {
|
|
1448
|
-
const shortcutMessage = $("span.shortcut-message", {}, ( localize(
|
|
1451
|
+
const shortcutMessage = $("span.shortcut-message", {}, ( localize(15724, "Tip: Use keyboard shortcut ")));
|
|
1449
1452
|
container.appendChild(shortcutMessage);
|
|
1450
1453
|
const label = ( new KeybindingLabel(shortcutMessage, OS, {
|
|
1451
1454
|
...defaultKeybindingLabelStyles
|
|
@@ -1554,7 +1557,7 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
1554
1557
|
"x-dispatch": "toggleStepCompletion:" + step.id,
|
|
1555
1558
|
"role": "checkbox",
|
|
1556
1559
|
"aria-checked": step.done ? "true" : "false",
|
|
1557
|
-
"aria-label": step.done ? ( localize(
|
|
1560
|
+
"aria-label": step.done ? ( localize(15696, "{0}: Completed", step.title)) : ( localize(15697, "{0}: Not completed", step.title))
|
|
1558
1561
|
}
|
|
1559
1562
|
);
|
|
1560
1563
|
const container = $(".step-description-container", {
|
|
@@ -1568,11 +1571,11 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
1568
1571
|
const stepDescription = $(".step-container", {}, stepTitle, container);
|
|
1569
1572
|
if (step.media.type === "image") {
|
|
1570
1573
|
stepDescription.appendChild($(".image-description", {
|
|
1571
|
-
"aria-label": ( localize(
|
|
1574
|
+
"aria-label": ( localize(15725, "Image showing {0}", step.media.altText))
|
|
1572
1575
|
}));
|
|
1573
1576
|
} else if (step.media.type === "video") {
|
|
1574
1577
|
stepDescription.appendChild($(".video-description", {
|
|
1575
|
-
"aria-label": ( localize(
|
|
1578
|
+
"aria-label": ( localize(15726, "Video showing {0}", step.media.altText))
|
|
1576
1579
|
}));
|
|
1577
1580
|
}
|
|
1578
1581
|
return $("button.getting-started-step", {
|
|
@@ -1597,9 +1600,9 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
1597
1600
|
"role": "list"
|
|
1598
1601
|
}, stepListContainer, $(".done-next-container", {}, $("button.button-link.all-done", {
|
|
1599
1602
|
"x-dispatch": "allDone"
|
|
1600
|
-
}, $("span.codicon.codicon-check-all"), ( localize(
|
|
1603
|
+
}, $("span.codicon.codicon-check-all"), ( localize(15727, "Mark Done"))), ...(showNextCategory ? [$("button.button-link.next", {
|
|
1601
1604
|
"x-dispatch": "nextSection"
|
|
1602
|
-
}, ( localize(
|
|
1605
|
+
}, ( localize(15728, "Next Section")), $("span.codicon.codicon-arrow-right"))] : [])));
|
|
1603
1606
|
this.detailsScrollbar = this._register(( new DomScrollableElement(stepsContainer, {
|
|
1604
1607
|
className: "steps-container"
|
|
1605
1608
|
})));
|
|
@@ -1622,12 +1625,12 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
1622
1625
|
this.registerDispatchListeners();
|
|
1623
1626
|
}
|
|
1624
1627
|
buildTelemetryFooter(parent) {
|
|
1625
|
-
const privacyStatementCopy = ( localize(
|
|
1628
|
+
const privacyStatementCopy = ( localize(15729, "privacy statement"));
|
|
1626
1629
|
const privacyStatementButton = `[${privacyStatementCopy}](command:workbench.action.openPrivacyStatementUrl)`;
|
|
1627
|
-
const optOutCopy = ( localize(
|
|
1630
|
+
const optOutCopy = ( localize(15730, "opt out"));
|
|
1628
1631
|
const optOutButton = `[${optOutCopy}](command:settings.filterByTelemetry)`;
|
|
1629
1632
|
const text = ( localize(
|
|
1630
|
-
|
|
1633
|
+
15731,
|
|
1631
1634
|
"{0} collects usage data. Read our {1} and learn how to {2}.",
|
|
1632
1635
|
this.productService.nameShort,
|
|
1633
1636
|
privacyStatementButton,
|
|
@@ -1702,7 +1705,7 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
1702
1705
|
const prevButton = this.container.querySelector(".prev-button.button-link");
|
|
1703
1706
|
prevButton.style.display = this.editorInput?.showWelcome || this.editorInput?.returnToCommand || this.prevWalkthrough ? "block" : "none";
|
|
1704
1707
|
const moreTextElement = prevButton.querySelector(".moreText");
|
|
1705
|
-
moreTextElement.textContent = firstLaunch ? ( localize(
|
|
1708
|
+
moreTextElement.textContent = firstLaunch ? ( localize(15732, "Welcome")) : ( localize(15703, "Go Back"));
|
|
1706
1709
|
this.container.querySelector(".gettingStartedSlideDetails").querySelectorAll("button").forEach(button => button.disabled = false);
|
|
1707
1710
|
this.container.querySelector(".gettingStartedSlideCategories").querySelectorAll("button").forEach(button => button.disabled = true);
|
|
1708
1711
|
this.container.querySelector(".gettingStartedSlideCategories").querySelectorAll("input").forEach(button => button.disabled = true);
|
|
@@ -1720,7 +1723,7 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
1720
1723
|
}
|
|
1721
1724
|
}
|
|
1722
1725
|
};
|
|
1723
|
-
GettingStartedPage = GettingStartedPage_1 = ( __decorate([( __param(1, ICommandService)), ( __param(2, IProductService)), ( __param(3, IKeybindingService)), ( __param(4, IWalkthroughsService)), ( __param(5, IConfigurationService)), ( __param(6, ITelemetryService)), ( __param(7, ILanguageService)), ( __param(8, IFileService)), ( __param(9, IOpenerService)), ( __param(10, IWorkbenchThemeService)), ( __param(11, IStorageService)), ( __param(12, IExtensionService)), ( __param(13, IInstantiationService)), ( __param(14, INotificationService)), ( __param(15, IEditorGroupsService)), ( __param(16, IContextKeyService)), ( __param(17, IQuickInputService)), ( __param(18, IWorkspacesService)), ( __param(19, ILabelService)), ( __param(20, IHostService)), ( __param(21, IWebviewService)), ( __param(22, IWorkspaceContextService)), ( __param(23, IAccessibilityService)), ( __param(24, IMarkdownRendererService))], GettingStartedPage));
|
|
1726
|
+
GettingStartedPage = GettingStartedPage_1 = ( __decorate([( __param(1, ICommandService)), ( __param(2, IProductService)), ( __param(3, IKeybindingService)), ( __param(4, IWalkthroughsService)), ( __param(5, IConfigurationService)), ( __param(6, ITelemetryService)), ( __param(7, ILanguageService)), ( __param(8, IFileService)), ( __param(9, IOpenerService)), ( __param(10, IWorkbenchThemeService)), ( __param(11, IStorageService)), ( __param(12, IExtensionService)), ( __param(13, IInstantiationService)), ( __param(14, INotificationService)), ( __param(15, IEditorGroupsService)), ( __param(16, IContextKeyService)), ( __param(17, IQuickInputService)), ( __param(18, IWorkspacesService)), ( __param(19, ILabelService)), ( __param(20, IHostService)), ( __param(21, IWebviewService)), ( __param(22, IWorkspaceContextService)), ( __param(23, IAccessibilityService)), ( __param(24, IMarkdownRendererService)), ( __param(25, IChatEntitlementService))], GettingStartedPage));
|
|
1724
1727
|
class GettingStartedInputSerializer {
|
|
1725
1728
|
canSerialize(editorInput) {
|
|
1726
1729
|
return true;
|
|
@@ -130,9 +130,9 @@ class GettingStartedAccessibleProvider extends Disposable {
|
|
|
130
130
|
}
|
|
131
131
|
_getContent(waltkrough, step, includeTitle) {
|
|
132
132
|
const description = ( step.description.map(lt => lt.nodes.filter(node => typeof node === "string"))).join("\n");
|
|
133
|
-
const stepsContent = ( localize(
|
|
133
|
+
const stepsContent = ( localize(15733, "{0}\n{1}", step.title, description));
|
|
134
134
|
if (includeTitle) {
|
|
135
|
-
return [( localize(
|
|
135
|
+
return [( localize(15734, "Title: {0}", waltkrough.title)), ( localize(15735, "Description: {0}", waltkrough.description)), stepsContent].join("\n");
|
|
136
136
|
} else {
|
|
137
137
|
return stepsContent;
|
|
138
138
|
}
|
package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedColors.js
CHANGED
|
@@ -12,30 +12,30 @@ 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(
|
|
15
|
+
registerColor("welcomePage.background", null, ( localize(15736, "Background color for the Welcome page.")));
|
|
16
16
|
registerColor("welcomePage.tileBackground", {
|
|
17
17
|
dark: editorWidgetBackground,
|
|
18
18
|
light: editorWidgetBackground,
|
|
19
19
|
hcDark: "#000",
|
|
20
20
|
hcLight: editorWidgetBackground
|
|
21
|
-
}, ( localize(
|
|
21
|
+
}, ( localize(15737, "Background color for the tiles on the Welcome page.")));
|
|
22
22
|
registerColor("welcomePage.tileHoverBackground", {
|
|
23
23
|
dark: ( lighten(editorWidgetBackground, .2)),
|
|
24
24
|
light: ( darken(editorWidgetBackground, .1)),
|
|
25
25
|
hcDark: null,
|
|
26
26
|
hcLight: null
|
|
27
|
-
}, ( localize(
|
|
27
|
+
}, ( localize(15738, "Hover background color for the tiles on the Welcome.")));
|
|
28
28
|
registerColor("welcomePage.tileBorder", {
|
|
29
29
|
dark: "#ffffff1a",
|
|
30
30
|
light: "#0000001a",
|
|
31
31
|
hcDark: contrastBorder,
|
|
32
32
|
hcLight: contrastBorder
|
|
33
|
-
}, ( localize(
|
|
34
|
-
registerColor("welcomePage.progress.background", inputBackground, ( localize(
|
|
35
|
-
registerColor("welcomePage.progress.foreground", textLinkForeground, ( localize(
|
|
33
|
+
}, ( localize(15739, "Border color for the tiles on the Welcome page.")));
|
|
34
|
+
registerColor("welcomePage.progress.background", inputBackground, ( localize(15740, "Foreground color for the Welcome page progress bars.")));
|
|
35
|
+
registerColor("welcomePage.progress.foreground", textLinkForeground, ( localize(15741, "Background color for the Welcome page progress bars.")));
|
|
36
36
|
registerColor("walkthrough.stepTitle.foreground", {
|
|
37
37
|
light: "#000000",
|
|
38
38
|
dark: "#ffffff",
|
|
39
39
|
hcDark: null,
|
|
40
40
|
hcLight: null
|
|
41
|
-
}, ( localize(
|
|
41
|
+
}, ( localize(15742, "Foreground color of the heading of each walkthrough step")));
|