@codingame/monaco-vscode-walkthrough-service-override 38.0.7 → 39.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.
Files changed (22) hide show
  1. package/package.json +2 -2
  2. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentsWindowGraphic.d.ts +42 -0
  3. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentsWindowGraphic.js +438 -0
  4. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/media/agentsWindowGraphic.css +405 -0
  5. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.contribution.js +21 -32
  6. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.d.ts +8 -0
  7. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.js +105 -48
  8. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedAccessibleView.js +2 -2
  9. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedColors.js +8 -7
  10. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedExtensionPoint.js +37 -37
  11. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedIcons.js +2 -2
  12. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedService._contribution.js +3 -3
  13. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedService.js +1 -1
  14. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/startupPage.js +2 -2
  15. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/common/gettingStartedContent.js +149 -159
  16. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/common/media/notebookProfile.js +3 -3
  17. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/common/media/theme_picker.js +5 -5
  18. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/common/media/theme_picker_small.js +4 -4
  19. package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/editor/editorWalkThrough.js +3 -3
  20. package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/walkThrough.contribution.js +2 -2
  21. package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/walkThroughPart.js +2 -2
  22. package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/common/walkThroughUtils.js +2 -1
@@ -16,6 +16,7 @@ import { onUnexpectedError } from '@codingame/monaco-vscode-api/vscode/vs/base/c
16
16
  import { KeyCode } from '@codingame/monaco-vscode-api/vscode/vs/base/common/keyCodes';
17
17
  import { splitRecentLabel } from '@codingame/monaco-vscode-api/vscode/vs/base/common/labels';
18
18
  import { DisposableStore, MutableDisposable, toDisposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
19
+ import '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/index';
19
20
  import { parse } from '@codingame/monaco-vscode-api/vscode/vs/base/common/marshalling';
20
21
  import { matchesScheme, Schemas } from '@codingame/monaco-vscode-api/vscode/vs/base/common/network';
21
22
  import { OS } from '@codingame/monaco-vscode-api/vscode/vs/base/common/platform';
@@ -74,11 +75,15 @@ import { IHostService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/s
74
75
  import { IWorkbenchThemeService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/themes/common/workbenchThemeService.service';
75
76
  import { GettingStartedIndexList } from './gettingStartedList.js';
76
77
  import { createAgentsBanner } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsBanner';
78
+ import { AgentsWindowGraphic } from '../../chat/browser/agentSessions/agentsWindowGraphic.js';
77
79
  import { IChatEntitlementService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/chat/common/chatEntitlementService.service';
78
80
  import { AccessibilityVerbositySettingId } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration';
79
81
  import { AccessibleViewAction } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/accessibility/browser/accessibleViewActions';
80
82
  import { KeybindingLabel } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/keybindingLabel/keybindingLabel';
81
83
  import { ScrollbarVisibility } from '@codingame/monaco-vscode-api/vscode/vs/base/common/scrollable';
84
+ import { observableValue } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/observables/observableValue';
85
+ import { derived } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/observables/derived';
86
+ import { autorun } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/reactions/autorun';
82
87
 
83
88
  var GettingStartedPage_1;
84
89
  registerCss(gettingStarted, 1);
@@ -98,6 +103,14 @@ const parsedStartEntries = startEntries.map((e, i) => ({
98
103
  title: e.title,
99
104
  when: ContextKeyExpr.deserialize(e.when) ?? ContextKeyExpr.true()
100
105
  }));
106
+ function setAgentsWindowGraphicLayout(categoriesContainer, layout) {
107
+ categoriesContainer.classList.toggle(
108
+ "agents-window-graphic-shown",
109
+ layout === "spacious" || layout === "compact"
110
+ );
111
+ categoriesContainer.classList.toggle("agents-window-graphic-spacious", layout === "spacious");
112
+ categoriesContainer.classList.toggle("agents-window-graphic-dropped", layout === "dropped");
113
+ }
101
114
  const REDUCED_MOTION_KEY = "workbench.welcomePage.preferReducedMotion";
102
115
  let GettingStartedPage = class GettingStartedPage extends EditorPane {
103
116
  static {
@@ -179,13 +192,14 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
179
192
  this.recentlyOpenedList = this._register(( new MutableDisposable()));
180
193
  this.startList = this._register(( new MutableDisposable()));
181
194
  this.gettingStartedList = this._register(( new MutableDisposable()));
195
+ this.categoriesSlideShown = observableValue(this, false);
182
196
  this.showFeaturedWalkthrough = true;
183
197
  this.currentMediaComponent = undefined;
184
198
  this.currentMediaType = undefined;
185
199
  this.container = $(".gettingStartedContainer", {
186
200
  role: "document",
187
201
  tabindex: 0,
188
- "aria-label": ( localize(23623, "Overview of how to get up to speed with your editor."))
202
+ "aria-label": ( localize(26585, "Overview of how to get up to speed with your editor."))
189
203
  });
190
204
  this.stepMediaComponent = $(".getting-started-media");
191
205
  this.stepMediaComponent.id = generateUuid();
@@ -259,17 +273,17 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
259
273
  badgeelement.parentElement?.setAttribute("aria-checked", "true");
260
274
  badgeelement.classList.remove(...ThemeIcon.asClassNameArray(gettingStartedUncheckedCodicon));
261
275
  badgeelement.classList.add("complete", ...ThemeIcon.asClassNameArray(gettingStartedCheckedCodicon));
262
- badgeelement.setAttribute("aria-label", ( localize(23624, "{0}: Completed", step.title)));
276
+ badgeelement.setAttribute("aria-label", ( localize(26586, "{0}: Completed", step.title)));
263
277
  } else {
264
278
  badgeelement.setAttribute("aria-checked", "false");
265
279
  badgeelement.parentElement?.setAttribute("aria-checked", "false");
266
280
  badgeelement.classList.remove("complete", ...ThemeIcon.asClassNameArray(gettingStartedCheckedCodicon));
267
281
  badgeelement.classList.add(...ThemeIcon.asClassNameArray(gettingStartedUncheckedCodicon));
268
- badgeelement.setAttribute("aria-label", ( localize(23625, "{0}: Not completed", step.title)));
282
+ badgeelement.setAttribute("aria-label", ( localize(26587, "{0}: Not completed", step.title)));
269
283
  }
270
284
  });
271
285
  if (step.done) {
272
- status(( localize(23626, "Step {0} completed", step.title)));
286
+ status(( localize(26588, "Step {0} completed", step.title)));
273
287
  }
274
288
  }
275
289
  this.updateCategoryProgress();
@@ -528,7 +542,7 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
528
542
  canPickMany: false,
529
543
  matchOnDescription: true,
530
544
  matchOnDetail: true,
531
- title: ( localize(23627, "Open Walkthrough..."))
545
+ title: ( localize(26589, "Open Walkthrough..."))
532
546
  }
533
547
  );
534
548
  if (selection) {
@@ -764,7 +778,7 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
764
778
  const themeType = this.themeService.getColorTheme().type;
765
779
  const videoPath = media.path[themeType];
766
780
  const videoPoster = media.poster ? media.poster[themeType] : undefined;
767
- const altText = media.altText ? media.altText : ( localize(23628, "Video for {0}", stepToExpand.title));
781
+ const altText = media.altText ? media.altText : ( localize(26590, "Video for {0}", stepToExpand.title));
768
782
  const rawHTML = await this.detailsRenderer.renderVideo(videoPath, videoPoster, altText);
769
783
  this.webview.setHtml(rawHTML);
770
784
  let isDisposed = false;
@@ -796,8 +810,8 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
796
810
  provideScreenReaderUpdate() {
797
811
  if (this.configurationService.getValue(AccessibilityVerbositySettingId.Walkthrough)) {
798
812
  const kbLabel = this.keybindingService.lookupKeybinding(AccessibleViewAction.id)?.getAriaLabel();
799
- return kbLabel ? ( localize(23629, "Inspect this in the accessible view ({0}).\n", kbLabel)) : ( localize(
800
- 23630,
813
+ return kbLabel ? ( localize(26591, "Inspect this in the accessible view ({0}).\n", kbLabel)) : ( localize(
814
+ 26592,
801
815
  "Inspect this in the accessible view via the command Open Accessible View which is currently not triggerable via keybinding.\n"
802
816
  ));
803
817
  }
@@ -866,7 +880,7 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
866
880
  this.categoriesSlide = $(".gettingStartedSlideCategories.gettingStartedSlide");
867
881
  const prevButton = $("button.prev-button.button-link", {
868
882
  "x-dispatch": "scrollPrev"
869
- }, $("span.scroll-button.codicon.codicon-chevron-left"), $("span.moreText", {}, ( localize(23631, "Go Back"))));
883
+ }, $("span.scroll-button.codicon.codicon-chevron-left"), $("span.moreText", {}, ( localize(26593, "Go Back"))));
870
884
  this.stepsSlide = $(".gettingStartedSlideDetails.gettingStartedSlide", {}, prevButton);
871
885
  this.stepsContent = $(".gettingStartedDetailsContent", {});
872
886
  this.detailsPageScrollbar = this._register(( new DomScrollableElement(this.stepsContent, {
@@ -895,13 +909,13 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
895
909
  icon: Codicon.check,
896
910
  actionClassName: "getting-started-checkbox",
897
911
  isChecked: this.configurationService.getValue(configurationKey) === "welcomePage",
898
- title: ( localize(23632, "When checked, this page will be shown on startup.")),
912
+ title: ( localize(26594, "When checked, this page will be shown on startup.")),
899
913
  ...defaultToggleStyles
900
914
  }));
901
915
  showOnStartupCheckbox.domNode.id = "showOnStartup";
902
916
  const showOnStartupLabel = $("label.caption", {
903
917
  for: "showOnStartup"
904
- }, ( localize(23633, "Show welcome page on startup")));
918
+ }, ( localize(26595, "Show welcome page on startup")));
905
919
  const onShowOnStartupChanged = () => {
906
920
  if (showOnStartupCheckbox.checked) {
907
921
  this.telemetryService.publicLog2("gettingStarted.ActionExecuted", {
@@ -931,7 +945,7 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
931
945
  ".header",
932
946
  {},
933
947
  $("h1.product-name.caption", {}, this.productService.nameLong),
934
- $("p.subtitle.description", {}, ( localize(23634, "Editing evolved")))
948
+ $("p.subtitle.description", {}, ( localize(26596, "Editing evolved")))
935
949
  );
936
950
  const leftColumn = $(".categories-column.categories-column-left", {});
937
951
  const rightColumn = $(".categories-column.categories-column-right", {});
@@ -939,9 +953,15 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
939
953
  const recentList = this.buildRecentlyOpenedList();
940
954
  const gettingStartedList = this.buildGettingStartedWalkthroughsList();
941
955
  const footerChildren = [];
956
+ const agentsWindowGraphic = this.categoriesSlideDisposables.add(this.instantiationService.createInstance(AgentsWindowGraphic));
942
957
  const agentsBanner = createAgentsBanner({
943
958
  cssClass: "getting-started-category.agents-banner",
944
- source: "welcomePage"
959
+ source: "welcomePage",
960
+ graphic: {
961
+ element: agentsWindowGraphic.element,
962
+ shownDesign: agentsWindowGraphic.shownDesign,
963
+ isExposed: this.categoriesSlideShown
964
+ }
945
965
  }, this.commandService, this.telemetryService, this.configurationService, this.chatEntitlementService, this.defaultAccountService);
946
966
  this.categoriesSlideDisposables.add(agentsBanner.disposables);
947
967
  footerChildren.push(agentsBanner.element);
@@ -949,6 +969,18 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
949
969
  $("p.showOnStartup", {}, showOnStartupCheckbox.domNode, showOnStartupLabel)
950
970
  );
951
971
  const footer = $(".footer", {}, ...footerChildren);
972
+ const categoriesContainer = $(
973
+ ".gettingStartedCategoriesContainer",
974
+ {},
975
+ header,
976
+ leftColumn,
977
+ rightColumn,
978
+ footer
979
+ );
980
+ const graphic = derived(
981
+ reader => agentsBanner.visible.read(reader) ? agentsWindowGraphic.shownDesign.read(reader) : undefined
982
+ );
983
+ const layoutAgentsWindowGraphic = () => this.fitAgentsWindowGraphic(categoriesContainer, graphic.get() !== undefined);
952
984
  const layoutLists = () => {
953
985
  if (gettingStartedList.itemCount) {
954
986
  this.container.classList.remove("noWalkthroughs");
@@ -959,6 +991,7 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
959
991
  }
960
992
  setTimeout(() => this.categoriesPageScrollbar?.scanDomNode(), 50);
961
993
  layoutRecentList();
994
+ layoutAgentsWindowGraphic();
962
995
  };
963
996
  const layoutRecentList = () => {
964
997
  if (this.container.classList.contains("noWalkthroughs")) {
@@ -971,16 +1004,20 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
971
1004
  }
972
1005
  };
973
1006
  gettingStartedList.onDidChange(layoutLists);
1007
+ recentList.onDidChange(layoutAgentsWindowGraphic);
974
1008
  layoutLists();
975
- reset(this.categoriesSlide, $(
976
- ".gettingStartedCategoriesContainer",
977
- {},
978
- header,
979
- leftColumn,
980
- rightColumn,
981
- footer
982
- ));
1009
+ reset(this.categoriesSlide, categoriesContainer);
983
1010
  this.categoriesPageScrollbar?.scanDomNode();
1011
+ this.categoriesSlideDisposables.add(autorun(reader => {
1012
+ graphic.read(reader);
1013
+ categoriesContainer.setAttribute(
1014
+ "data-agents-window-section-style",
1015
+ agentsWindowGraphic.sectionStyle.read(reader)
1016
+ );
1017
+ layoutAgentsWindowGraphic();
1018
+ }));
1019
+ this.layoutAgentsWindowGraphic = layoutAgentsWindowGraphic;
1020
+ this.categoriesSlideDisposables.add(toDisposable(() => this.layoutAgentsWindowGraphic = undefined));
984
1021
  this.updateCategoryProgress();
985
1022
  this.registerDispatchListeners();
986
1023
  const editorInput = this.editorInput;
@@ -1004,6 +1041,7 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
1004
1041
  const telemetryNotice = $("p.telemetry-notice");
1005
1042
  this.buildTelemetryFooter(telemetryNotice);
1006
1043
  footer.appendChild(telemetryNotice);
1044
+ layoutAgentsWindowGraphic();
1007
1045
  } else if (!this.productService.openToWelcomeMainPage && this.showFeaturedWalkthrough && this.storageService.isNew(StorageScope.APPLICATION) && !this.configurationService.getValue("workbench.welcomePage.experimentalOnboarding")) {
1008
1046
  const firstSessionDateString = this.storageService.get(firstSessionDateStorageKey, StorageScope.APPLICATION) || ( new Date()).toUTCString();
1009
1047
  const daysSinceFirstSession = ((+( new Date())) - (+( new Date(firstSessionDateString)))) / 1000 / 60 / 60 / 24;
@@ -1052,7 +1090,7 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
1052
1090
  const link = $("button.button-link");
1053
1091
  link.innerText = name;
1054
1092
  link.title = fullPath;
1055
- link.setAttribute("aria-label", ( localize(23635, "Open folder {0} with path {1}", name, parentPath)));
1093
+ link.setAttribute("aria-label", ( localize(26597, "Open folder {0} with path {1}", name, parentPath)));
1056
1094
  link.addEventListener("click", e => {
1057
1095
  this.telemetryService.publicLog2("gettingStarted.ActionExecuted", {
1058
1096
  command: "openRecent",
@@ -1078,8 +1116,8 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
1078
1116
  {
1079
1117
  "tabindex": 0,
1080
1118
  "role": "button",
1081
- "title": ( localize(23636, "Remove from Recently Opened")),
1082
- "aria-label": ( localize(23637, "Remove {0} from Recently Opened", name))
1119
+ "title": ( localize(26598, "Remove from Recently Opened")),
1120
+ "aria-label": ( localize(26599, "Remove {0} from Recently Opened", name))
1083
1121
  }
1084
1122
  );
1085
1123
  const handleDelete = async e => {
@@ -1098,20 +1136,20 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
1098
1136
  return li;
1099
1137
  };
1100
1138
  const recentlyOpenedList = this.recentlyOpenedList.value = ( new GettingStartedIndexList({
1101
- title: ( localize(23638, "Recent")),
1139
+ title: ( localize(26600, "Recent")),
1102
1140
  klass: "recently-opened",
1103
1141
  limit: 5,
1104
- empty: $(".empty-recent", {}, ( localize(23639, "You have no recent folders,")), $("button.button-link", {
1142
+ empty: $(".empty-recent", {}, ( localize(26601, "You have no recent folders,")), $("button.button-link", {
1105
1143
  "x-dispatch": "openFolder"
1106
- }, ( localize(23640, "open a folder"))), ( localize(23641, "to start."))),
1144
+ }, ( localize(26602, "open a folder"))), ( localize(26603, "to start."))),
1107
1145
  more: $(".more", {}, $("button.button-link", {
1108
1146
  "x-dispatch": "showMoreRecents",
1109
1147
  title: ( localize(
1110
- 23642,
1148
+ 26604,
1111
1149
  "Show All Recent Folders {0}",
1112
1150
  this.getKeybindingLabel(OpenRecentAction.ID)
1113
1151
  ))
1114
- }, ( localize(23643, "More...")))),
1152
+ }, ( localize(26605, "More...")))),
1115
1153
  renderElement: renderRecent,
1116
1154
  contextService: this.contextService
1117
1155
  }));
@@ -1157,7 +1195,7 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
1157
1195
  title: entry.description + " " + this.getKeybindingLabel(entry.command)
1158
1196
  }, this.iconWidgetFor(entry), $("span", {}, entry.title)));
1159
1197
  const startList = this.startList.value = ( new GettingStartedIndexList({
1160
- title: ( localize(23644, "Start")),
1198
+ title: ( localize(26606, "Start")),
1161
1199
  klass: "start-container",
1162
1200
  limit: 10,
1163
1201
  renderElement: renderStartEntry,
@@ -1173,9 +1211,9 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
1173
1211
  const renderNewBadge = (category.newItems || category.newEntry) && !category.isFeatured;
1174
1212
  const newBadge = $(".new-badge", {});
1175
1213
  if (category.newEntry) {
1176
- reset(newBadge, $(".new-category", {}, ( localize(23645, "New"))));
1214
+ reset(newBadge, $(".new-category", {}, ( localize(26607, "New"))));
1177
1215
  } else if (category.newItems) {
1178
- reset(newBadge, $(".new-items", {}, ( localize(23646, "Updated"))));
1216
+ reset(newBadge, $(".new-items", {}, ( localize(26608, "Updated"))));
1179
1217
  }
1180
1218
  const featuredBadge = $(".featured-badge", {});
1181
1219
  const descriptionContent = $(".description-content", {});
@@ -1206,9 +1244,9 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
1206
1244
  $("a.codicon.codicon-close.hide-category-button", {
1207
1245
  "tabindex": 0,
1208
1246
  "x-dispatch": "hideCategory:" + category.id,
1209
- "title": ( localize(23647, "Hide")),
1247
+ "title": ( localize(26609, "Hide")),
1210
1248
  "role": "button",
1211
- "aria-label": ( localize(23648, "Hide"))
1249
+ "aria-label": ( localize(26610, "Hide"))
1212
1250
  })
1213
1251
  ),
1214
1252
  descriptionContent,
@@ -1239,13 +1277,13 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
1239
1277
  return rank;
1240
1278
  };
1241
1279
  const gettingStartedList = this.gettingStartedList.value = ( new GettingStartedIndexList({
1242
- title: ( localize(23649, "Walkthroughs")),
1280
+ title: ( localize(26611, "Walkthroughs")),
1243
1281
  klass: "getting-started",
1244
1282
  limit: 5,
1245
1283
  footer: $("span.button-link.see-all-walkthroughs", {
1246
1284
  "x-dispatch": "seeAllWalkthroughs",
1247
1285
  "tabindex": 0
1248
- }, ( localize(23643, "More..."))),
1286
+ }, ( localize(26605, "More..."))),
1249
1287
  renderElement: renderGetttingStaredWalkthrough,
1250
1288
  rankElement: rankWalkthrough,
1251
1289
  contextService: this.contextService
@@ -1278,10 +1316,28 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
1278
1316
  this.container.classList.toggle("height-constrained", size.height <= 600);
1279
1317
  this.container.classList.toggle("width-constrained", size.width <= 400);
1280
1318
  this.container.classList.toggle("width-semi-constrained", size.width <= 950);
1319
+ this.layoutAgentsWindowGraphic?.();
1281
1320
  this.categoriesPageScrollbar?.scanDomNode();
1282
1321
  this.detailsPageScrollbar?.scanDomNode();
1283
1322
  this.detailsScrollbar.value?.scanDomNode();
1284
1323
  }
1324
+ fitAgentsWindowGraphic(categoriesContainer, graphicAvailable) {
1325
+ let layout;
1326
+ if (graphicAvailable) {
1327
+ layout = "dropped";
1328
+ if (categoriesContainer.isConnected && this.categoriesSlide.clientHeight > 0) {
1329
+ for (const candidate of ["spacious", "compact"]) {
1330
+ setAgentsWindowGraphicLayout(categoriesContainer, candidate);
1331
+ if (this.categoriesSlide.scrollHeight <= this.categoriesSlide.clientHeight) {
1332
+ layout = candidate;
1333
+ break;
1334
+ }
1335
+ }
1336
+ }
1337
+ }
1338
+ setAgentsWindowGraphicLayout(categoriesContainer, layout);
1339
+ this.categoriesPageScrollbar?.scanDomNode();
1340
+ }
1285
1341
  updateCategoryProgress() {
1286
1342
  this.window.document.querySelectorAll(".category-progress").forEach(element => {
1287
1343
  const categoryID = element.getAttribute("x-data-category-id");
@@ -1298,9 +1354,9 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
1298
1354
  bar.style.width = `${progress}%`;
1299
1355
  element.parentElement.classList.toggle("no-progress", stats.stepsComplete === 0);
1300
1356
  if (stats.stepsTotal === stats.stepsComplete) {
1301
- bar.title = ( localize(23650, "All {0} steps complete!", stats.stepsComplete));
1357
+ bar.title = ( localize(26612, "All {0} steps complete!", stats.stepsComplete));
1302
1358
  } else {
1303
- bar.title = ( localize(23651, "{0} of {1} steps complete", stats.stepsComplete, stats.stepsTotal));
1359
+ bar.title = ( localize(26613, "{0} of {1} steps complete", stats.stepsComplete, stats.stepsTotal));
1304
1360
  }
1305
1361
  });
1306
1362
  }
@@ -1451,7 +1507,7 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
1451
1507
  if (isCommand) {
1452
1508
  const keybinding = this.getKeyBinding(command);
1453
1509
  if (keybinding) {
1454
- const shortcutMessage = $("span.shortcut-message", {}, ( localize(23652, "Tip: Use keyboard shortcut ")));
1510
+ const shortcutMessage = $("span.shortcut-message", {}, ( localize(26614, "Tip: Use keyboard shortcut ")));
1455
1511
  container.appendChild(shortcutMessage);
1456
1512
  const label = ( new KeybindingLabel(shortcutMessage, OS, {
1457
1513
  ...defaultKeybindingLabelStyles
@@ -1557,7 +1613,7 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
1557
1613
  "x-dispatch": "toggleStepCompletion:" + step.id,
1558
1614
  "role": "checkbox",
1559
1615
  "aria-checked": step.done ? "true" : "false",
1560
- "aria-label": step.done ? ( localize(23624, "{0}: Completed", step.title)) : ( localize(23625, "{0}: Not completed", step.title))
1616
+ "aria-label": step.done ? ( localize(26586, "{0}: Completed", step.title)) : ( localize(26587, "{0}: Not completed", step.title))
1561
1617
  }
1562
1618
  );
1563
1619
  const container = $(".step-description-container", {
@@ -1571,11 +1627,11 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
1571
1627
  const stepDescription = $(".step-container", {}, stepTitle, container);
1572
1628
  if (step.media.type === "image") {
1573
1629
  stepDescription.appendChild($(".image-description", {
1574
- "aria-label": ( localize(23653, "Image showing {0}", step.media.altText))
1630
+ "aria-label": ( localize(26615, "Image showing {0}", step.media.altText))
1575
1631
  }));
1576
1632
  } else if (step.media.type === "video") {
1577
1633
  stepDescription.appendChild($(".video-description", {
1578
- "aria-label": ( localize(23654, "Video showing {0}", step.media.altText))
1634
+ "aria-label": ( localize(26616, "Video showing {0}", step.media.altText))
1579
1635
  }));
1580
1636
  }
1581
1637
  return $("button.getting-started-step", {
@@ -1600,9 +1656,9 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
1600
1656
  "role": "list"
1601
1657
  }, stepListContainer, $(".done-next-container", {}, $("button.button-link.all-done", {
1602
1658
  "x-dispatch": "allDone"
1603
- }, $("span.codicon.codicon-check-all"), ( localize(23655, "Mark Done"))), ...(showNextCategory ? [$("button.button-link.next", {
1659
+ }, $("span.codicon.codicon-check-all"), ( localize(26617, "Mark Done"))), ...(showNextCategory ? [$("button.button-link.next", {
1604
1660
  "x-dispatch": "nextSection"
1605
- }, ( localize(23656, "Next Section")), $("span.codicon.codicon-arrow-right"))] : [])));
1661
+ }, ( localize(26618, "Next Section")), $("span.codicon.codicon-arrow-right"))] : [])));
1606
1662
  this.detailsScrollbar.value = ( new DomScrollableElement(stepsContainer, {
1607
1663
  className: "steps-container"
1608
1664
  }));
@@ -1625,12 +1681,12 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
1625
1681
  this.registerDispatchListeners();
1626
1682
  }
1627
1683
  buildTelemetryFooter(parent) {
1628
- const privacyStatementCopy = ( localize(23657, "privacy statement"));
1684
+ const privacyStatementCopy = ( localize(26619, "privacy statement"));
1629
1685
  const privacyStatementButton = `[${privacyStatementCopy}](command:workbench.action.openPrivacyStatementUrl)`;
1630
- const optOutCopy = ( localize(23658, "opt out"));
1686
+ const optOutCopy = ( localize(26620, "opt out"));
1631
1687
  const optOutButton = `[${optOutCopy}](command:settings.filterByTelemetry)`;
1632
1688
  const text = ( localize(
1633
- 23659,
1689
+ 26621,
1634
1690
  "{0} collects usage data. Read our {1} and learn how to {2}.",
1635
1691
  this.productService.nameShort,
1636
1692
  privacyStatementButton,
@@ -1692,6 +1748,7 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
1692
1748
  }
1693
1749
  setSlide(toEnable, firstLaunch = false) {
1694
1750
  const slideManager = assertReturnsDefined(this.container.querySelector(".gettingStarted"));
1751
+ this.categoriesSlideShown.set(toEnable === "categories", undefined);
1695
1752
  if (toEnable === "categories") {
1696
1753
  slideManager.classList.remove("showDetails");
1697
1754
  slideManager.classList.add("showCategories");
@@ -1705,7 +1762,7 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
1705
1762
  const prevButton = this.container.querySelector(".prev-button.button-link");
1706
1763
  prevButton.style.display = this.editorInput?.showWelcome || this.editorInput?.returnToCommand || this.prevWalkthrough ? "block" : "none";
1707
1764
  const moreTextElement = prevButton.querySelector(".moreText");
1708
- moreTextElement.textContent = firstLaunch ? ( localize(23660, "Welcome")) : ( localize(23631, "Go Back"));
1765
+ moreTextElement.textContent = firstLaunch ? ( localize(26622, "Welcome")) : ( localize(26593, "Go Back"));
1709
1766
  this.container.querySelector(".gettingStartedSlideDetails").querySelectorAll("button").forEach(button => button.disabled = false);
1710
1767
  this.container.querySelector(".gettingStartedSlideCategories").querySelectorAll("button").forEach(button => button.disabled = true);
1711
1768
  this.container.querySelector(".gettingStartedSlideCategories").querySelectorAll("input").forEach(button => button.disabled = 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(23661, "{0}\n{1}", step.title, description));
133
+ const stepsContent = ( localize(26623, "{0}\n{1}", step.title, description));
134
134
  if (includeTitle) {
135
- return [( localize(23662, "Title: {0}", waltkrough.title)), ( localize(23663, "Description: {0}", waltkrough.description)), stepsContent].join("\n");
135
+ return [( localize(26624, "Title: {0}", waltkrough.title)), ( localize(26625, "Description: {0}", waltkrough.description)), stepsContent].join("\n");
136
136
  } else {
137
137
  return stepsContent;
138
138
  }
@@ -2,6 +2,7 @@
2
2
  import { registerColor, darken, lighten } from '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colorUtils';
3
3
  import { contrastBorder, textLinkForeground } from '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/baseColors';
4
4
  import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/chartsColors';
5
+ import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/confettiColors';
5
6
  import { editorWidgetBackground } from '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/editorColors';
6
7
  import { inputBackground } from '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/inputColors';
7
8
  import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/listColors';
@@ -12,30 +13,30 @@ import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/quic
12
13
  import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/searchColors';
13
14
  import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
14
15
 
15
- registerColor("welcomePage.background", null, ( localize(23664, "Background color for the Welcome page.")));
16
+ registerColor("welcomePage.background", null, ( localize(26626, "Background color for the Welcome page.")));
16
17
  registerColor("welcomePage.tileBackground", {
17
18
  dark: editorWidgetBackground,
18
19
  light: editorWidgetBackground,
19
20
  hcDark: "#000",
20
21
  hcLight: editorWidgetBackground
21
- }, ( localize(23665, "Background color for the tiles on the Welcome page.")));
22
+ }, ( localize(26627, "Background color for the tiles on the Welcome page.")));
22
23
  registerColor("welcomePage.tileHoverBackground", {
23
24
  dark: ( lighten(editorWidgetBackground, .2)),
24
25
  light: ( darken(editorWidgetBackground, .1)),
25
26
  hcDark: null,
26
27
  hcLight: null
27
- }, ( localize(23666, "Hover background color for the tiles on the Welcome.")));
28
+ }, ( localize(26628, "Hover background color for the tiles on the Welcome.")));
28
29
  registerColor("welcomePage.tileBorder", {
29
30
  dark: "#ffffff1a",
30
31
  light: "#0000001a",
31
32
  hcDark: contrastBorder,
32
33
  hcLight: contrastBorder
33
- }, ( localize(23667, "Border color for the tiles on the Welcome page.")));
34
- registerColor("welcomePage.progress.background", inputBackground, ( localize(23668, "Foreground color for the Welcome page progress bars.")));
35
- registerColor("welcomePage.progress.foreground", textLinkForeground, ( localize(23669, "Background color for the Welcome page progress bars.")));
34
+ }, ( localize(26629, "Border color for the tiles on the Welcome page.")));
35
+ registerColor("welcomePage.progress.background", inputBackground, ( localize(26630, "Foreground color for the Welcome page progress bars.")));
36
+ registerColor("welcomePage.progress.foreground", textLinkForeground, ( localize(26631, "Background color for the Welcome page progress bars.")));
36
37
  registerColor("walkthrough.stepTitle.foreground", {
37
38
  light: "#000000",
38
39
  dark: "#ffffff",
39
40
  hcDark: null,
40
41
  hcLight: null
41
- }, ( localize(23670, "Foreground color of the heading of each walkthrough step")));
42
+ }, ( localize(26632, "Foreground color of the heading of each walkthrough step")));