@codingame/monaco-vscode-scm-service-override 37.2.0 → 37.3.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.
@@ -86,7 +86,7 @@ import { constObservable } from '@codingame/monaco-vscode-api/vscode/vs/base/com
86
86
  import { latestChangedValue } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/experimental/utils';
87
87
 
88
88
  var HistoryItemRenderer_1, HistoryItemChangeRenderer_1, HistoryItemLoadMoreRenderer_1;
89
- registerCss(scm);
89
+ registerCss(scm, 1);
90
90
  const PICK_REPOSITORY_ACTION_ID = "workbench.scm.action.graph.pickRepository";
91
91
  const PICK_HISTORY_ITEM_REFS_ACTION_ID = "workbench.scm.action.graph.pickHistoryItemRefs";
92
92
  class SCMRepositoryActionViewItem extends ActionViewItem {
@@ -130,20 +130,20 @@ class SCMHistoryItemRefsActionViewItem extends ActionViewItem {
130
130
  icon.classList.add(...ThemeIcon.asClassNameArray(Codicon.gitBranch));
131
131
  const name = $(".name");
132
132
  if (this._historyItemsFilter === "all") {
133
- name.textContent = ( localize(15797, "All"));
133
+ name.textContent = ( localize(17936, "All"));
134
134
  } else if (this._historyItemsFilter === "auto") {
135
- name.textContent = ( localize(15798, "Auto"));
135
+ name.textContent = ( localize(17937, "Auto"));
136
136
  } else if (this._historyItemsFilter.length === 1) {
137
137
  name.textContent = this._historyItemsFilter[0].name;
138
138
  } else {
139
- name.textContent = ( localize(15799, "{0} Items", this._historyItemsFilter.length));
139
+ name.textContent = ( localize(17938, "{0} Items", this._historyItemsFilter.length));
140
140
  }
141
141
  reset(this.label, icon, name);
142
142
  }
143
143
  }
144
144
  getTooltip() {
145
145
  if (this._historyItemsFilter === "all") {
146
- return localize(15800, "All history item references");
146
+ return localize(17939, "All history item references");
147
147
  } else if (this._historyItemsFilter === "auto") {
148
148
  const historyProvider = this._repository.provider.historyProvider.get();
149
149
  return [
@@ -154,7 +154,7 @@ class SCMHistoryItemRefsActionViewItem extends ActionViewItem {
154
154
  } else if (this._historyItemsFilter.length === 1) {
155
155
  return this._historyItemsFilter[0].name;
156
156
  } else {
157
- return ( this._historyItemsFilter.map(ref => ref.name)).join(", ");
157
+ return this._historyItemsFilter.map(ref => ref.name).join(", ");
158
158
  }
159
159
  }
160
160
  }
@@ -162,7 +162,7 @@ registerAction2(class extends ViewAction {
162
162
  constructor() {
163
163
  super({
164
164
  id: PICK_REPOSITORY_ACTION_ID,
165
- title: ( localize(15801, "Repository Picker")),
165
+ title: ( localize(17940, "Repository Picker")),
166
166
  viewId: HISTORY_VIEW_PANE_ID,
167
167
  f1: false,
168
168
  menu: {
@@ -181,7 +181,7 @@ registerAction2(class extends ViewAction {
181
181
  constructor() {
182
182
  super({
183
183
  id: PICK_HISTORY_ITEM_REFS_ACTION_ID,
184
- title: ( localize(15802, "History Item Reference Picker")),
184
+ title: ( localize(17941, "History Item Reference Picker")),
185
185
  icon: Codicon.gitBranch,
186
186
  viewId: HISTORY_VIEW_PANE_ID,
187
187
  precondition: ( ContextKeys.SCMHistoryItemCount.notEqualsTo(0)),
@@ -201,7 +201,7 @@ registerAction2(class extends ViewAction {
201
201
  constructor() {
202
202
  super({
203
203
  id: "workbench.scm.action.graph.revealCurrentHistoryItem",
204
- title: ( localize(15803, "Go to Current History Item")),
204
+ title: ( localize(17942, "Go to Current History Item")),
205
205
  icon: Codicon.target,
206
206
  viewId: HISTORY_VIEW_PANE_ID,
207
207
  precondition: ( ContextKeyExpr.and(( ContextKeys.SCMHistoryItemCount.notEqualsTo(0)), ( ContextKeys.SCMCurrentHistoryItemRefInFilter.isEqualTo(true)))),
@@ -221,7 +221,7 @@ registerAction2(class extends ViewAction {
221
221
  constructor() {
222
222
  super({
223
223
  id: "workbench.scm.action.graph.refresh",
224
- title: ( localize(15804, "Refresh")),
224
+ title: ( localize(17943, "Refresh")),
225
225
  viewId: HISTORY_VIEW_PANE_ID,
226
226
  f1: false,
227
227
  icon: Codicon.refresh,
@@ -240,7 +240,7 @@ registerAction2(class extends ViewAction {
240
240
  constructor() {
241
241
  super({
242
242
  id: "workbench.scm.action.graph.setListViewMode",
243
- title: ( localize(15805, "View as List")),
243
+ title: ( localize(17944, "View as List")),
244
244
  viewId: HISTORY_VIEW_PANE_ID,
245
245
  toggled: ( ContextKeys.SCMHistoryViewMode.isEqualTo(ViewMode.List)),
246
246
  menu: {
@@ -259,7 +259,7 @@ registerAction2(class extends ViewAction {
259
259
  constructor() {
260
260
  super({
261
261
  id: "workbench.scm.action.graph.setTreeViewMode",
262
- title: ( localize(15806, "View as Tree")),
262
+ title: ( localize(17945, "View as Tree")),
263
263
  viewId: HISTORY_VIEW_PANE_ID,
264
264
  toggled: ( ContextKeys.SCMHistoryViewMode.isEqualTo(ViewMode.Tree)),
265
265
  menu: {
@@ -278,7 +278,7 @@ registerAction2(class extends Action2 {
278
278
  constructor() {
279
279
  super({
280
280
  id: "workbench.scm.action.graph.viewChanges",
281
- title: ( localize(15807, "Open Changes")),
281
+ title: ( localize(17946, "Open Changes")),
282
282
  icon: Codicon.diffMultiple,
283
283
  f1: false,
284
284
  menu: [{
@@ -338,7 +338,7 @@ registerAction2(class extends Action2 {
338
338
  constructor() {
339
339
  super({
340
340
  id: "workbench.scm.action.graph.openFile",
341
- title: ( localize(15808, "Open File")),
341
+ title: ( localize(17947, "Open File")),
342
342
  icon: Codicon.goToFile,
343
343
  f1: false,
344
344
  menu: [{
@@ -359,9 +359,9 @@ registerAction2(class extends Action2 {
359
359
  }
360
360
  let version;
361
361
  if (historyItem.id === SCMIncomingHistoryItemId) {
362
- version = ( localize(15809, "Incoming Changes"));
362
+ version = ( localize(17948, "Incoming Changes"));
363
363
  } else if (historyItem.id === SCMOutgoingHistoryItemId) {
364
- version = ( localize(15810, "Outgoing Changes"));
364
+ version = ( localize(17949, "Outgoing Changes"));
365
365
  } else {
366
366
  version = historyItem.displayId ?? historyItem.id;
367
367
  }
@@ -689,7 +689,7 @@ let HistoryItemChangeRenderer = class HistoryItemChangeRenderer {
689
689
  const historyItemViewModel = compressed.elements[0].context.historyItemViewModel;
690
690
  const graphColumns = compressed.elements[0].context.historyItemViewModel.outputSwimlanes;
691
691
  this._renderGraphPlaceholder(templateData, historyItemViewModel, graphColumns);
692
- const label = ( compressed.elements.map(e => e.name));
692
+ const label = compressed.elements.map(e => e.name);
693
693
  const folder = compressed.elements[compressed.elements.length - 1];
694
694
  templateData.resourceLabel.setResource({
695
695
  resource: folder.uri,
@@ -765,7 +765,7 @@ let HistoryItemLoadMoreRenderer = class HistoryItemLoadMoreRenderer {
765
765
  templateData.elementDisposables.add(autorun(reader => {
766
766
  const isLoadingMore = this._isLoadingMore.read(reader);
767
767
  const icon = `$(${isLoadingMore ? "loading~spin" : "fold-down"})`;
768
- templateData.historyItemPlaceholderLabel.setLabel(( localize(15811, "{0} Load More...", icon)));
768
+ templateData.historyItemPlaceholderLabel.setLabel(( localize(17950, "{0} Load More...", icon)));
769
769
  }));
770
770
  }
771
771
  }
@@ -795,7 +795,7 @@ let SCMHistoryViewPaneActionRunner = class SCMHistoryViewPaneActionRunner extend
795
795
  SCMHistoryViewPaneActionRunner = ( __decorate([( __param(0, IProgressService))], SCMHistoryViewPaneActionRunner));
796
796
  class SCMHistoryTreeAccessibilityProvider {
797
797
  getWidgetAriaLabel() {
798
- return localize(15812, "Source Control History");
798
+ return localize(17951, "Source Control History");
799
799
  }
800
800
  getAriaLabel(element) {
801
801
  if (isSCMRepository(element)) {
@@ -850,7 +850,7 @@ class SCMHistoryTreeKeyboardNavigationLabelProvider {
850
850
  }
851
851
  getCompressedNodeKeyboardNavigationLabel(elements) {
852
852
  const folders = elements;
853
- return ( folders.map(e => e.name)).join("/");
853
+ return folders.map(e => e.name).join("/");
854
854
  }
855
855
  }
856
856
  class SCMHistoryTreeCompressionDelegate {
@@ -910,13 +910,13 @@ class SCMHistoryTreeDataSource extends Disposable {
910
910
  }
911
911
  const historyItemChanges = (await historyProvider?.provideHistoryItemChanges(historyItemId, historyItemParentId)) ?? [];
912
912
  if (this.viewMode() === ViewMode.List) {
913
- children.push(...( historyItemChanges.map(change => ({
913
+ children.push(...historyItemChanges.map(change => ({
914
914
  repository: inputOrElement.repository,
915
915
  historyItemViewModel: inputOrElement.historyItemViewModel,
916
916
  historyItemChange: change,
917
917
  graphColumns: inputOrElement.historyItemViewModel.outputSwimlanes,
918
918
  type: "historyItemChangeViewModel"
919
- }))));
919
+ })));
920
920
  } else if (this.viewMode() === ViewMode.Tree) {
921
921
  const rootUri = inputOrElement.repository.provider.rootUri ?? URI.file("/");
922
922
  const historyItemChangesTree = ( new ResourceTree(inputOrElement, rootUri));
@@ -1124,7 +1124,7 @@ let SCMHistoryViewModel = class SCMHistoryViewModel extends Disposable {
1124
1124
  ).map(vm => vm.historyItemViewModel.historyItem) ?? [];
1125
1125
  const historyItemRefs = state?.historyItemsFilter ?? (await this._resolveHistoryItemFilter(repository, historyProvider));
1126
1126
  const limit = clamp(this._configurationService.getValue("scm.graph.pageSize"), 1, 1000);
1127
- const historyItemRefIds = ( historyItemRefs.map(ref => ref.revision ?? ref.id));
1127
+ const historyItemRefIds = historyItemRefs.map(ref => ref.revision ?? ref.id);
1128
1128
  do {
1129
1129
  historyItems.push(...((await historyProvider.provideHistoryItems({
1130
1130
  historyItemRefs: historyItemRefIds,
@@ -1136,7 +1136,7 @@ let SCMHistoryViewModel = class SCMHistoryViewModel extends Disposable {
1136
1136
  const colorMap = this._getGraphColorMap(historyItemRefs);
1137
1137
  const addIncomingChangesNode = this._scmViewService.graphShowIncomingChangesConfig.get() && ( historyItemRefs.some(ref => ref.id === historyItemRemoteRef?.id));
1138
1138
  const addOutgoingChangesNode = this._scmViewService.graphShowOutgoingChangesConfig.get() && ( historyItemRefs.some(ref => ref.id === historyItemRef?.id));
1139
- const viewModels = ( toISCMHistoryItemViewModelArray(
1139
+ const viewModels = toISCMHistoryItemViewModelArray(
1140
1140
  historyItems,
1141
1141
  colorMap,
1142
1142
  historyProvider.historyItemRef.get(),
@@ -1149,7 +1149,7 @@ let SCMHistoryViewModel = class SCMHistoryViewModel extends Disposable {
1149
1149
  repository,
1150
1150
  historyItemViewModel,
1151
1151
  type: "historyItemViewModel"
1152
- })));
1152
+ }));
1153
1153
  state = {
1154
1154
  historyItemsFilter: historyItemRefs,
1155
1155
  viewModels,
@@ -1248,7 +1248,7 @@ let SCMHistoryViewModel = class SCMHistoryViewModel extends Disposable {
1248
1248
  this._repositoryFilterState.delete(getProviderKey(repository.provider));
1249
1249
  } else {
1250
1250
  historyItemRefs.push(...refs);
1251
- this._repositoryFilterState.set(getProviderKey(repository.provider), ( refs.map(ref => ref.id)));
1251
+ this._repositoryFilterState.set(getProviderKey(repository.provider), refs.map(ref => ref.id));
1252
1252
  }
1253
1253
  this._saveHistoryItemsFilterState();
1254
1254
  break;
@@ -1285,8 +1285,8 @@ let RepositoryPicker = class RepositoryPicker {
1285
1285
  this._quickInputService = _quickInputService;
1286
1286
  this._scmViewService = _scmViewService;
1287
1287
  this._autoQuickPickItem = {
1288
- label: ( localize(15798, "Auto")),
1289
- description: ( localize(15813, "Show the source control graph for the active repository")),
1288
+ label: ( localize(17937, "Auto")),
1289
+ description: ( localize(17952, "Show the source control graph for the active repository")),
1290
1290
  repository: "auto"
1291
1291
  };
1292
1292
  }
@@ -1294,14 +1294,14 @@ let RepositoryPicker = class RepositoryPicker {
1294
1294
  const picks = [this._autoQuickPickItem, {
1295
1295
  type: "separator"
1296
1296
  }];
1297
- picks.push(...( this._scmViewService.repositories.map(r => ({
1297
+ picks.push(...this._scmViewService.repositories.map(r => ({
1298
1298
  label: r.provider.name,
1299
1299
  description: r.provider.rootUri?.fsPath,
1300
1300
  iconClass: ThemeIcon.isThemeIcon(r.provider.iconPath) ? ThemeIcon.asClassName(r.provider.iconPath) : ThemeIcon.asClassName(Codicon.repo),
1301
1301
  repository: r
1302
- }))));
1302
+ })));
1303
1303
  return this._quickInputService.pick(picks, {
1304
- placeHolder: ( localize(15814, "Select the repository to view, type to filter all repositories"))
1304
+ placeHolder: ( localize(17953, "Select the repository to view, type to filter all repositories"))
1305
1305
  });
1306
1306
  }
1307
1307
  };
@@ -1314,14 +1314,14 @@ let HistoryItemRefPicker = class HistoryItemRefPicker extends Disposable {
1314
1314
  this._quickInputService = _quickInputService;
1315
1315
  this._allQuickPickItem = {
1316
1316
  id: "all",
1317
- label: ( localize(15797, "All")),
1318
- description: ( localize(15800, "All history item references")),
1317
+ label: ( localize(17936, "All")),
1318
+ description: ( localize(17939, "All history item references")),
1319
1319
  historyItemRef: "all"
1320
1320
  };
1321
1321
  this._autoQuickPickItem = {
1322
1322
  id: "auto",
1323
- label: ( localize(15798, "Auto")),
1324
- description: ( localize(15815, "Current history item reference(s)")),
1323
+ label: ( localize(17937, "Auto")),
1324
+ description: ( localize(17954, "Current history item reference(s)")),
1325
1325
  historyItemRef: "auto"
1326
1326
  };
1327
1327
  }
@@ -1330,7 +1330,7 @@ let HistoryItemRefPicker = class HistoryItemRefPicker extends Disposable {
1330
1330
  useSeparators: true
1331
1331
  });
1332
1332
  this._store.add(quickPick);
1333
- quickPick.placeholder = ( localize(15816, "Select one/more history item references to view, type to filter"));
1333
+ quickPick.placeholder = ( localize(17955, "Select one/more history item references to view, type to filter"));
1334
1334
  quickPick.canSelectMany = true;
1335
1335
  quickPick.hideCheckAll = true;
1336
1336
  quickPick.busy = true;
@@ -1386,7 +1386,7 @@ let HistoryItemRefPicker = class HistoryItemRefPicker extends Disposable {
1386
1386
  } else if (selectedItems.length === 1 && selectedItems[0].historyItemRef === "auto") {
1387
1387
  resolve("auto");
1388
1388
  } else {
1389
- resolve(( selectedItems.map(item => item.historyItemRef.id)));
1389
+ resolve(selectedItems.map(item => item.historyItemRef.id));
1390
1390
  }
1391
1391
  quickPick.hide();
1392
1392
  }));
@@ -1408,7 +1408,7 @@ let HistoryItemRefPicker = class HistoryItemRefPicker extends Disposable {
1408
1408
  type: "separator",
1409
1409
  label: refs[0].category
1410
1410
  });
1411
- picks.push(...( refs.map(ref => {
1411
+ picks.push(...refs.map(ref => {
1412
1412
  return {
1413
1413
  id: ref.id,
1414
1414
  label: ref.name,
@@ -1416,7 +1416,7 @@ let HistoryItemRefPicker = class HistoryItemRefPicker extends Disposable {
1416
1416
  iconClass: ThemeIcon.isThemeIcon(ref.icon) ? ThemeIcon.asClassName(ref.icon) : undefined,
1417
1417
  historyItemRef: ref
1418
1418
  };
1419
- })));
1419
+ }));
1420
1420
  }
1421
1421
  return picks;
1422
1422
  }
@@ -1485,7 +1485,7 @@ let SCMHistoryViewPane = class SCMHistoryViewPane extends ViewPane {
1485
1485
  showPointer: true
1486
1486
  },
1487
1487
  content: ( new MarkdownString(( localize(
1488
- 15817,
1488
+ 17956,
1489
1489
  "Please refresh the graph using the refresh action ({0}).",
1490
1490
  "$(refresh)"
1491
1491
  )), {
@@ -1758,7 +1758,7 @@ let SCMHistoryViewPane = class SCMHistoryViewPane extends ViewPane {
1758
1758
  } else if (isSCMHistoryItemChangeViewModelTreeElement(e.element)) {
1759
1759
  const historyItemChange = e.element.historyItemChange;
1760
1760
  const historyItem = e.element.historyItemViewModel.historyItem;
1761
- const historyItemDisplayId = historyItem.id === SCMIncomingHistoryItemId ? ( localize(15809, "Incoming Changes")) : historyItem.id === SCMOutgoingHistoryItemId ? ( localize(15810, "Outgoing Changes")) : historyItem.displayId ?? historyItem.id;
1761
+ const historyItemDisplayId = historyItem.id === SCMIncomingHistoryItemId ? ( localize(17948, "Incoming Changes")) : historyItem.id === SCMOutgoingHistoryItemId ? ( localize(17949, "Outgoing Changes")) : historyItem.displayId ?? historyItem.id;
1762
1762
  const historyItemParentId = historyItem.parentIds.length > 0 ? historyItem.parentIds[0] : undefined;
1763
1763
  const historyItemParentDisplayId = historyItemParentId && historyItem.displayId ? historyItemParentId.substring(0, historyItem.displayId.length) : historyItemParentId;
1764
1764
  if (historyItemChange.originalUri && historyItemChange.modifiedUri) {
@@ -77,9 +77,9 @@ import { autorun } from '@codingame/monaco-vscode-api/vscode/vs/base/common/obse
77
77
  import { AnchorAlignment } from '@codingame/monaco-vscode-api/vscode/vs/base/common/layout';
78
78
 
79
79
  var SCMInputWidget_1;
80
- registerCss(scm);
80
+ registerCss(scm, 1);
81
81
  const SCMInputContextKeys = {
82
- SCMInputHasValidationMessage: ( new RawContextKey("scmInputHasValidationMessage", false))
82
+ SCMInputHasValidationMessage: new RawContextKey("scmInputHasValidationMessage", false)
83
83
  };
84
84
  var SCMInputWidgetCommandId;
85
85
  (function(SCMInputWidgetCommandId) {
@@ -112,7 +112,7 @@ let SCMInputWidgetActionRunner = class SCMInputWidgetActionRunner extends Action
112
112
  for (const group of this.input.repository.provider.groups) {
113
113
  context.push({
114
114
  resourceGroupId: group.id,
115
- resources: [...( group.resources.map(r => r.sourceUri))]
115
+ resources: [...group.resources.map(r => r.sourceUri)]
116
116
  });
117
117
  }
118
118
  this._runningActions.add(action);
@@ -168,10 +168,10 @@ let SCMInputWidgetToolbar = class SCMInputWidgetToolbar extends WorkbenchToolBar
168
168
  this._onDidChange = this._register(( new Emitter()));
169
169
  this.onDidChange = this._onDidChange.event;
170
170
  this._disposables = this._register(( new MutableDisposable()));
171
- this._dropdownAction = ( new Action("scmInputMoreActions", ( localize(15818, "More Actions...")), "codicon-chevron-down"));
171
+ this._dropdownAction = ( new Action("scmInputMoreActions", ( localize(17957, "More Actions...")), "codicon-chevron-down"));
172
172
  this._cancelAction = ( new MenuItemAction({
173
173
  id: SCMInputWidgetCommandId.CancelAction,
174
- title: ( localize(15819, "Cancel")),
174
+ title: ( localize(17958, "Cancel")),
175
175
  icon: Codicon.stopCircle
176
176
  }, undefined, undefined, undefined, undefined, contextKeyService, commandService));
177
177
  }
@@ -429,12 +429,12 @@ let SCMInputWidget = class SCMInputWidget {
429
429
  }
430
430
  const kbLabel = this.keybindingService.lookupKeybinding(AccessibilityCommandId.OpenAccessibilityHelp)?.getLabel();
431
431
  return kbLabel ? ( localize(
432
- 15820,
432
+ 17959,
433
433
  "{0}, Use {1} to open Source Control Accessibility Help.",
434
434
  placeholder,
435
435
  kbLabel
436
436
  )) : ( localize(
437
- 15821,
437
+ 17960,
438
438
  "{0}, Run the Open Accessibility Help command for more information.",
439
439
  placeholder
440
440
  ));
@@ -757,7 +757,7 @@ let SCMInputWidget = class SCMInputWidget {
757
757
  }
758
758
  const actionsContainer = append(validationContainer, $(".scm-editor-validation-actions"));
759
759
  const actionbar = ( new ActionBar(actionsContainer));
760
- const action = ( new Action("scmInputWidget.validationMessage.close", ( localize(15822, "Close")), ThemeIcon.asClassName(Codicon.close), true, () => {
760
+ const action = ( new Action("scmInputWidget.validationMessage.close", ( localize(17961, "Close")), ThemeIcon.asClassName(Codicon.close), true, () => {
761
761
  this.contextViewService.hideContextView();
762
762
  this.element.style.borderBottomLeftRadius = "2px";
763
763
  this.element.style.borderBottomRightRadius = "2px";
@@ -804,7 +804,7 @@ registerAction2(class extends Action2 {
804
804
  constructor() {
805
805
  super({
806
806
  id: SCMInputWidgetCommandId.SetupAction,
807
- title: ( localize(15823, "Generate Commit Message")),
807
+ title: ( localize(17962, "Generate Commit Message")),
808
808
  icon: Codicon.sparkle,
809
809
  f1: false,
810
810
  menu: {
@@ -44,7 +44,7 @@ import { runOnChange } from '@codingame/monaco-vscode-api/vscode/vs/base/common/
44
44
  import { observableSignalFromEvent } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/observables/observableSignalFromEvent';
45
45
 
46
46
  var ArtifactGroupRenderer_1, ArtifactRenderer_1;
47
- registerCss(scm);
47
+ registerCss(scm, 1);
48
48
  class ListDelegate {
49
49
  getHeight() {
50
50
  return 22;
@@ -279,11 +279,11 @@ let RepositoryTreeDataSource = class RepositoryTreeDataSource extends Disposable
279
279
  return repositories;
280
280
  } else if (isSCMRepository(inputOrElement)) {
281
281
  const artifactGroups = (await inputOrElement.provider.artifactProvider.get()?.provideArtifactGroups()) ?? [];
282
- return ( artifactGroups.map(group => ({
282
+ return artifactGroups.map(group => ({
283
283
  repository: inputOrElement,
284
284
  artifactGroup: group,
285
285
  type: "artifactGroup"
286
- })));
286
+ }));
287
287
  } else if (isSCMArtifactGroupTreeElement(inputOrElement)) {
288
288
  const repository = inputOrElement.repository;
289
289
  const artifacts = (await repository.provider.artifactProvider.get()?.provideArtifacts(inputOrElement.artifactGroup.id)) ?? [];
@@ -307,20 +307,20 @@ let RepositoryTreeDataSource = class RepositoryTreeDataSource extends Disposable
307
307
  type: "artifact"
308
308
  });
309
309
  }
310
- return ( Iterable.map(artifactsTree.root.children, node => node.element ?? node));
310
+ return Iterable.map(artifactsTree.root.children, node => node.element ?? node);
311
311
  }
312
- return ( artifacts.map((artifact, index, artifacts) => ({
312
+ return artifacts.map((artifact, index, artifacts) => ({
313
313
  repository,
314
314
  group: inputOrElement.artifactGroup,
315
315
  artifact,
316
316
  hideTimestamp: index > 0 && artifact.timestamp !== undefined && artifacts[index - 1].timestamp !== undefined && fromNow(artifacts[index - 1].timestamp) === fromNow(artifact.timestamp),
317
317
  type: "artifact"
318
- })));
318
+ }));
319
319
  } else if (isSCMArtifactNode(inputOrElement)) {
320
- return ( Iterable.map(
320
+ return Iterable.map(
321
321
  inputOrElement.children,
322
322
  node => node.element && node.childrenCount === 0 ? node.element : node
323
- ));
323
+ );
324
324
  }
325
325
  return [];
326
326
  }
@@ -517,7 +517,7 @@ let SCMRepositoriesViewPane = class SCMRepositoriesViewPane extends ViewPane {
517
517
  }
518
518
  },
519
519
  getWidgetAriaLabel() {
520
- return localize(15824, "Source Control Repositories");
520
+ return localize(17963, "Source Control Repositories");
521
521
  }
522
522
  }
523
523
  }
@@ -615,7 +615,7 @@ let SCMRepositoriesViewPane = class SCMRepositoriesViewPane extends ViewPane {
615
615
  if (e.elements.every(e => isSCMRepository(e))) {
616
616
  this.scmViewService.visibleRepositories = e.elements;
617
617
  } else if (e.elements.every(e => isSCMArtifactGroupTreeElement(e) || isSCMArtifactTreeElement(e))) {
618
- this.scmViewService.visibleRepositories = ( e.elements.map(e => e.repository));
618
+ this.scmViewService.visibleRepositories = e.elements.map(e => e.repository);
619
619
  }
620
620
  this.tree.scrollTop = scrollTop;
621
621
  }
@@ -709,7 +709,7 @@ let SCMRepositoriesViewPane = class SCMRepositoriesViewPane extends ViewPane {
709
709
  }
710
710
  }
711
711
  getTreeSelection() {
712
- return ( this.tree.getSelection().map(e => {
712
+ return this.tree.getSelection().map(e => {
713
713
  if (isSCMRepository(e)) {
714
714
  return e;
715
715
  } else if (isSCMArtifactGroupTreeElement(e) || isSCMArtifactTreeElement(e)) {
@@ -719,7 +719,7 @@ let SCMRepositoriesViewPane = class SCMRepositoriesViewPane extends ViewPane {
719
719
  } else {
720
720
  throw ( new Error("Invalid tree element"));
721
721
  }
722
- }));
722
+ });
723
723
  }
724
724
  loadTreeViewState() {
725
725
  const storageViewState = this.storageService.get("scm.repositoriesViewState", StorageScope.WORKSPACE);
@@ -29,7 +29,7 @@ import { observableSignalFromEvent } from '@codingame/monaco-vscode-api/vscode/v
29
29
  import { autorun } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/reactions/autorun';
30
30
 
31
31
  var RepositoryRenderer_1;
32
- registerCss(scm);
32
+ registerCss(scm, 1);
33
33
  class RepositoryActionRunner extends ActionRunner {
34
34
  constructor(getSelectedRepositories) {
35
35
  super();
@@ -40,7 +40,7 @@ class RepositoryActionRunner extends ActionRunner {
40
40
  return super.runAction(action, context);
41
41
  }
42
42
  const actionContext = [context];
43
- const selection = ( this.getSelectedRepositories().map(r => r.provider));
43
+ const selection = this.getSelectedRepositories().map(r => r.provider);
44
44
  if (( selection.some(s => s === context))) {
45
45
  actionContext.push(...selection.filter(s => s !== context));
46
46
  }
@@ -134,9 +134,11 @@ let RepositoryRenderer = class RepositoryRenderer {
134
134
  description = repository.provider.label;
135
135
  } else if (repositoriesWithSameName.length > 1) {
136
136
  const repositoryIndex = repositoriesWithSameName.findIndex(r => r === repository);
137
- const shortDescription = shorten(( repositoriesWithSameName.map(r => this.labelService.getUriLabel(dirname(r.provider.rootUri), {
138
- relative: true
139
- }))));
137
+ const shortDescription = shorten(
138
+ repositoriesWithSameName.map(r => this.labelService.getUriLabel(dirname(r.provider.rootUri), {
139
+ relative: true
140
+ }))
141
+ );
140
142
  description = shortDescription[repositoryIndex];
141
143
  }
142
144
  }
@@ -159,7 +161,7 @@ let RepositoryRenderer = class RepositoryRenderer {
159
161
  };
160
162
  templateData.elementDisposables.add(autorun(reader => {
161
163
  const commands = repository.provider.statusBarCommands.read(reader) ?? [];
162
- statusPrimaryActions = ( commands.map(c => reader.store.add(( new StatusBarAction(c, this.commandService)))));
164
+ statusPrimaryActions = commands.map(c => reader.store.add(( new StatusBarAction(c, this.commandService))));
163
165
  updateToolbar();
164
166
  }));
165
167
  templateData.elementDisposables.add(autorun(reader => {