@codingame/monaco-vscode-scm-service-override 10.1.0 → 10.1.2

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-scm-service-override",
3
- "version": "10.1.0",
3
+ "version": "10.1.2",
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@10.1.0"
29
+ "vscode": "npm:@codingame/monaco-vscode-api@10.1.2"
30
30
  }
31
31
  }
@@ -101,7 +101,7 @@ let SCMActiveRepositoryController = class SCMActiveRepositoryController extends
101
101
  if (count === 0) {
102
102
  return;
103
103
  }
104
- const badge = ( (new NumberBadge(count, num => ( localize(6333, '{0} pending changes', num)))));
104
+ const badge = ( (new NumberBadge(count, num => ( localize(6310, '{0} pending changes', num)))));
105
105
  store.add(this.activityService.showViewActivity(VIEW_PANE_ID, { badge }));
106
106
  }
107
107
  _updateStatusBar(repository, commands, store) {
@@ -127,7 +127,7 @@ let SCMActiveRepositoryController = class SCMActiveRepositoryController extends
127
127
  repoAgnosticActionName = '';
128
128
  }
129
129
  const statusbarEntry = {
130
- name: ( localize(6334, "Source Control")) + (repoAgnosticActionName ? ` ${repoAgnosticActionName}` : ''),
130
+ name: ( localize(6311, "Source Control")) + (repoAgnosticActionName ? ` ${repoAgnosticActionName}` : ''),
131
131
  text: command.title,
132
132
  ariaLabel: tooltip,
133
133
  tooltip,
@@ -159,8 +159,8 @@ let SCMActiveResourceContextKeyController = class SCMActiveResourceContextKeyCon
159
159
  this.uriIdentityService = uriIdentityService;
160
160
  this._repositories = observableFromEvent(this, Event.any(this.scmService.onDidAddRepository, this.scmService.onDidRemoveRepository), () => this.scmService.repositories);
161
161
  this._onDidRepositoryChange = ( (new Emitter()));
162
- const activeResourceHasChangesContextKey = ( (new RawContextKey('scmActiveResourceHasChanges', false, ( localize(6335, "Whether the active resource has changes")))));
163
- const activeResourceRepositoryContextKey = ( (new RawContextKey('scmActiveResourceRepository', undefined, ( localize(6336, "The active resource's repository")))));
162
+ const activeResourceHasChangesContextKey = ( (new RawContextKey('scmActiveResourceHasChanges', false, ( localize(6312, "Whether the active resource has changes")))));
163
+ const activeResourceRepositoryContextKey = ( (new RawContextKey('scmActiveResourceRepository', undefined, ( localize(6313, "The active resource's repository")))));
164
164
  this._store.add(autorunWithStore((reader, store) => {
165
165
  for (const repository of this._repositories.read(reader)) {
166
166
  store.add(Event.runAndSubscribe(repository.provider.onDidChangeResources, () => {
@@ -209,7 +209,7 @@ SCMMenus = ( (__decorate([
209
209
  ( (__param(1, IInstantiationService)))
210
210
  ], SCMMenus)));
211
211
  MenuRegistry.appendMenuItem(MenuId.SCMResourceContext, {
212
- title: ( localize(6309, "Share")),
212
+ title: ( localize(6285, "Share")),
213
213
  submenu: MenuId.SCMResourceContextShare,
214
214
  group: '45_share',
215
215
  order: 3,
@@ -103,23 +103,23 @@ class SCMHistoryItemRefsActionViewItem extends ActionViewItem {
103
103
  icon.classList.add(...ThemeIcon.asClassNameArray(Codicon.gitBranch));
104
104
  const name = $('.name');
105
105
  if (this._historyItemsFilter === 'all') {
106
- name.textContent = ( localize(6358, "All"));
106
+ name.textContent = ( localize(6334, "All"));
107
107
  }
108
108
  else if (this._historyItemsFilter === 'auto') {
109
- name.textContent = ( localize(6359, "Auto"));
109
+ name.textContent = ( localize(6335, "Auto"));
110
110
  }
111
111
  else if (this._historyItemsFilter.length === 1) {
112
112
  name.textContent = this._historyItemsFilter[0].name;
113
113
  }
114
114
  else {
115
- name.textContent = ( localize(6360, "{0} Items", this._historyItemsFilter.length));
115
+ name.textContent = ( localize(6336, "{0} Items", this._historyItemsFilter.length));
116
116
  }
117
117
  reset(this.label, icon, name);
118
118
  }
119
119
  }
120
120
  getTooltip() {
121
121
  if (this._historyItemsFilter === 'all') {
122
- return ( localize(6361, "All history item references"));
122
+ return ( localize(6337, "All history item references"));
123
123
  }
124
124
  else if (this._historyItemsFilter === 'auto') {
125
125
  const historyProvider = this._repository.provider.historyProvider.get();
@@ -141,7 +141,7 @@ registerAction2(class extends ViewAction {
141
141
  constructor() {
142
142
  super({
143
143
  id: PICK_REPOSITORY_ACTION_ID,
144
- title: ( localize(6362, "Repository Picker")),
144
+ title: ( localize(6338, "Repository Picker")),
145
145
  viewId: HISTORY_VIEW_PANE_ID,
146
146
  f1: false,
147
147
  menu: {
@@ -163,7 +163,7 @@ registerAction2(class extends ViewAction {
163
163
  constructor() {
164
164
  super({
165
165
  id: PICK_HISTORY_ITEM_REFS_ACTION_ID,
166
- title: ( localize(6363, "History Item Reference Picker")),
166
+ title: ( localize(6339, "History Item Reference Picker")),
167
167
  icon: Codicon.gitBranch,
168
168
  viewId: HISTORY_VIEW_PANE_ID,
169
169
  precondition: ( (ContextKeys.SCMHistoryItemCount.notEqualsTo(0))),
@@ -183,7 +183,7 @@ registerAction2(class extends ViewAction {
183
183
  constructor() {
184
184
  super({
185
185
  id: 'workbench.scm.action.graph.revealCurrentHistoryItem',
186
- title: ( localize(6364, "Go to Current History Item")),
186
+ title: ( localize(6340, "Go to Current History Item")),
187
187
  icon: Codicon.target,
188
188
  viewId: HISTORY_VIEW_PANE_ID,
189
189
  precondition: ( (ContextKeys.SCMHistoryItemCount.notEqualsTo(0))),
@@ -203,7 +203,7 @@ registerAction2(class extends ViewAction {
203
203
  constructor() {
204
204
  super({
205
205
  id: 'workbench.scm.action.graph.refresh',
206
- title: ( localize(6365, "Refresh")),
206
+ title: ( localize(6341, "Refresh")),
207
207
  viewId: HISTORY_VIEW_PANE_ID,
208
208
  f1: false,
209
209
  icon: Codicon.refresh,
@@ -222,7 +222,7 @@ registerAction2(class extends Action2 {
222
222
  constructor() {
223
223
  super({
224
224
  id: 'workbench.scm.action.graph.viewChanges',
225
- title: ( localize(6366, "View Changes")),
225
+ title: ( localize(6342, "View Changes")),
226
226
  f1: false,
227
227
  menu: [
228
228
  {
@@ -255,7 +255,7 @@ registerAction2(class extends Action2 {
255
255
  const title = historyItems.length === 1 ?
256
256
  getHistoryItemEditorTitle(historyItem) :
257
257
  ( localize(
258
- 6367,
258
+ 6343,
259
259
  "All Changes ({0} ↔ {1})",
260
260
  historyItemLast.displayId ?? historyItemLast.id,
261
261
  historyItem.displayId ?? historyItem.id
@@ -375,7 +375,7 @@ let HistoryItemRenderer = class HistoryItemRenderer {
375
375
  {
376
376
  commandId: 'workbench.scm.action.graph.copyHistoryItemMessage',
377
377
  iconClass: 'codicon.codicon-copy',
378
- label: ( localize(6368, "Message")),
378
+ label: ( localize(6344, "Message")),
379
379
  run: () => this._clipboardService.writeText(historyItem.message)
380
380
  }
381
381
  ];
@@ -396,19 +396,19 @@ let HistoryItemRenderer = class HistoryItemRenderer {
396
396
  if (historyItem.statistics) {
397
397
  markdown.appendMarkdown(`---\n\n`);
398
398
  markdown.appendMarkdown(`<span>${historyItem.statistics.files === 1 ?
399
- ( localize(6369, "{0} file changed", historyItem.statistics.files)) :
400
- ( localize(6370, "{0} files changed", historyItem.statistics.files))}</span>`);
399
+ ( localize(6345, "{0} file changed", historyItem.statistics.files)) :
400
+ ( localize(6346, "{0} files changed", historyItem.statistics.files))}</span>`);
401
401
  if (historyItem.statistics.insertions) {
402
402
  const additionsForegroundColor = colorTheme.getColor(historyItemHoverAdditionsForeground);
403
403
  markdown.appendMarkdown(`,&nbsp;<span style="color:${additionsForegroundColor};">${historyItem.statistics.insertions === 1 ?
404
- ( localize(6371, "{0} insertion{1}", historyItem.statistics.insertions, '(+)')) :
405
- ( localize(6372, "{0} insertions{1}", historyItem.statistics.insertions, '(+)'))}</span>`);
404
+ ( localize(6347, "{0} insertion{1}", historyItem.statistics.insertions, '(+)')) :
405
+ ( localize(6348, "{0} insertions{1}", historyItem.statistics.insertions, '(+)'))}</span>`);
406
406
  }
407
407
  if (historyItem.statistics.deletions) {
408
408
  const deletionsForegroundColor = colorTheme.getColor(historyItemHoverDeletionsForeground);
409
409
  markdown.appendMarkdown(`,&nbsp;<span style="color:${deletionsForegroundColor};">${historyItem.statistics.deletions === 1 ?
410
- ( localize(6373, "{0} deletion{1}", historyItem.statistics.deletions, '(-)')) :
411
- ( localize(6374, "{0} deletions{1}", historyItem.statistics.deletions, '(-)'))}</span>`);
410
+ ( localize(6349, "{0} deletion{1}", historyItem.statistics.deletions, '(-)')) :
411
+ ( localize(6350, "{0} deletions{1}", historyItem.statistics.deletions, '(-)'))}</span>`);
412
412
  }
413
413
  }
414
414
  if ((historyItem.references ?? []).length > 0) {
@@ -475,7 +475,7 @@ let HistoryItemLoadMoreRenderer = class HistoryItemLoadMoreRenderer {
475
475
  templateData.elementDisposables.add(autorun(reader => {
476
476
  const isLoadingMore = this._isLoadingMore.read(reader);
477
477
  const icon = `$(${isLoadingMore ? 'loading~spin' : 'fold-down'})`;
478
- templateData.historyItemPlaceholderLabel.setLabel(( localize(6375, "{0} Load More...", icon)));
478
+ templateData.historyItemPlaceholderLabel.setLabel(( localize(6351, "{0} Load More...", icon)));
479
479
  }));
480
480
  }
481
481
  }
@@ -529,7 +529,7 @@ SCMHistoryViewPaneActionRunner = ( (__decorate([
529
529
  ], SCMHistoryViewPaneActionRunner)));
530
530
  class SCMHistoryTreeAccessibilityProvider {
531
531
  getWidgetAriaLabel() {
532
- return ( localize(6376, "Source Control History"));
532
+ return ( localize(6352, "Source Control History"));
533
533
  }
534
534
  getAriaLabel(element) {
535
535
  if (isSCMRepository(element)) {
@@ -835,8 +835,8 @@ let RepositoryPicker = class RepositoryPicker extends Disposable {
835
835
  this._quickInputService = _quickInputService;
836
836
  this._scmViewService = _scmViewService;
837
837
  this._autoQuickPickItem = {
838
- label: ( localize(6359, "Auto")),
839
- description: ( localize(6377, "Show the source control graph for the active repository")),
838
+ label: ( localize(6335, "Auto")),
839
+ description: ( localize(6353, "Show the source control graph for the active repository")),
840
840
  repository: 'auto'
841
841
  };
842
842
  }
@@ -852,7 +852,7 @@ let RepositoryPicker = class RepositoryPicker extends Disposable {
852
852
  repository: r
853
853
  })))));
854
854
  return this._quickInputService.pick(picks, {
855
- placeHolder: ( localize(6378, "Select the repository to view, type to filter all repositories"))
855
+ placeHolder: ( localize(6354, "Select the repository to view, type to filter all repositories"))
856
856
  });
857
857
  }
858
858
  };
@@ -868,21 +868,21 @@ let HistoryItemRefPicker = class HistoryItemRefPicker extends Disposable {
868
868
  this._quickInputService = _quickInputService;
869
869
  this._allQuickPickItem = {
870
870
  id: 'all',
871
- label: ( localize(6358, "All")),
872
- description: ( localize(6361, "All history item references")),
871
+ label: ( localize(6334, "All")),
872
+ description: ( localize(6337, "All history item references")),
873
873
  historyItemRef: 'all'
874
874
  };
875
875
  this._autoQuickPickItem = {
876
876
  id: 'auto',
877
- label: ( localize(6359, "Auto")),
878
- description: ( localize(6379, "Current history item reference(s)")),
877
+ label: ( localize(6335, "Auto")),
878
+ description: ( localize(6355, "Current history item reference(s)")),
879
879
  historyItemRef: 'auto'
880
880
  };
881
881
  }
882
882
  async pickHistoryItemRef() {
883
883
  const quickPick = this._quickInputService.createQuickPick({ useSeparators: true });
884
884
  this._store.add(quickPick);
885
- quickPick.placeholder = ( localize(6380, "Select one/more history item references to view, type to filter"));
885
+ quickPick.placeholder = ( localize(6356, "Select one/more history item references to view, type to filter"));
886
886
  quickPick.canSelectMany = true;
887
887
  quickPick.hideCheckAll = true;
888
888
  quickPick.busy = true;
@@ -1011,7 +1011,7 @@ let SCMHistoryViewPane = class SCMHistoryViewPane extends ViewPane {
1011
1011
  container.appendChild(element.root);
1012
1012
  this._register(this.hoverService.setupManagedHover(getDefaultHoverDelegate('mouse'), element.root, {
1013
1013
  markdown: {
1014
- value: ( localize(6381, "Please refresh the graph using the refresh action ($(refresh)).")),
1014
+ value: ( localize(6357, "Please refresh the graph using the refresh action ($(refresh)).")),
1015
1015
  supportThemeIcons: true
1016
1016
  },
1017
1017
  markdownNotSupportedFallback: undefined
@@ -1162,7 +1162,7 @@ let SCMHistoryViewPane = class SCMHistoryViewPane extends ViewPane {
1162
1162
  if (Array.isArray(historyItemFilter) &&
1163
1163
  !historyItemFilter.find(ref => ref.id === historyItemRef.id)) {
1164
1164
  this._notificationService.info(( localize(
1165
- 6382,
1165
+ 6358,
1166
1166
  "The current history item is not present in the source control graph. Please use the history item references picker to expand the set of history items in the graph."
1167
1167
  )));
1168
1168
  return;
@@ -58,7 +58,7 @@ let SCMRepositoriesViewPane = class SCMRepositoriesViewPane extends ViewPane {
58
58
  return r.provider.label;
59
59
  },
60
60
  getWidgetAriaLabel() {
61
- return ( localize(6338, "Source Control Repositories"));
61
+ return ( localize(6314, "Source Control Repositories"));
62
62
  }
63
63
  }
64
64
  });
@@ -714,7 +714,7 @@ let SCMAccessibilityProvider = class SCMAccessibilityProvider {
714
714
  this.labelService = labelService;
715
715
  }
716
716
  getWidgetAriaLabel() {
717
- return ( localize(6339, "Source Control Management"));
717
+ return ( localize(6315, "Source Control Management"));
718
718
  }
719
719
  getAriaLabel(element) {
720
720
  if (ResourceTree.isResourceNode(element)) {
@@ -724,7 +724,7 @@ let SCMAccessibilityProvider = class SCMAccessibilityProvider {
724
724
  return `${element.provider.name} ${element.provider.label}`;
725
725
  }
726
726
  else if (isSCMInput(element)) {
727
- return ( localize(6340, "Source Control Input"));
727
+ return ( localize(6316, "Source Control Input"));
728
728
  }
729
729
  else if (isSCMActionButton(element)) {
730
730
  return element.button?.command.title ?? '';
@@ -772,7 +772,7 @@ const ContextKeys = {
772
772
  }
773
773
  };
774
774
  MenuRegistry.appendMenuItem(MenuId.SCMTitle, {
775
- title: ( localize(6341, "View & Sort")),
775
+ title: ( localize(6317, "View & Sort")),
776
776
  submenu: Menus.ViewSort,
777
777
  when: ( (ContextKeyExpr.and(
778
778
  (ContextKeyExpr.equals('view', VIEW_PANE_ID)),
@@ -782,7 +782,7 @@ MenuRegistry.appendMenuItem(MenuId.SCMTitle, {
782
782
  order: 1
783
783
  });
784
784
  MenuRegistry.appendMenuItem(Menus.ViewSort, {
785
- title: ( localize(6342, "Repositories")),
785
+ title: ( localize(6318, "Repositories")),
786
786
  submenu: Menus.Repositories,
787
787
  when: ContextKeyExpr.greater(ContextKeys.RepositoryCount.key, 1),
788
788
  group: '0_repositories'
@@ -875,7 +875,7 @@ class SetListViewModeAction extends ViewAction {
875
875
  constructor(id = 'workbench.scm.action.setListViewMode', menu = {}) {
876
876
  super({
877
877
  id,
878
- title: ( localize(6343, "View as List")),
878
+ title: ( localize(6319, "View as List")),
879
879
  viewId: VIEW_PANE_ID,
880
880
  f1: false,
881
881
  icon: Codicon.listTree,
@@ -905,7 +905,7 @@ class SetTreeViewModeAction extends ViewAction {
905
905
  constructor(id = 'workbench.scm.action.setTreeViewMode', menu = {}) {
906
906
  super({
907
907
  id,
908
- title: ( localize(6344, "View as Tree")),
908
+ title: ( localize(6320, "View as Tree")),
909
909
  viewId: VIEW_PANE_ID,
910
910
  f1: false,
911
911
  icon: Codicon.listFlat,
@@ -962,17 +962,17 @@ class RepositorySortAction extends ViewAction {
962
962
  }
963
963
  class RepositorySortByDiscoveryTimeAction extends RepositorySortAction {
964
964
  constructor() {
965
- super("discoveryTime" , ( localize(6345, "Sort by Discovery Time")));
965
+ super("discoveryTime" , ( localize(6321, "Sort by Discovery Time")));
966
966
  }
967
967
  }
968
968
  class RepositorySortByNameAction extends RepositorySortAction {
969
969
  constructor() {
970
- super("name" , ( localize(6346, "Sort by Name")));
970
+ super("name" , ( localize(6322, "Sort by Name")));
971
971
  }
972
972
  }
973
973
  class RepositorySortByPathAction extends RepositorySortAction {
974
974
  constructor() {
975
- super("path" , ( localize(6347, "Sort by Path")));
975
+ super("path" , ( localize(6323, "Sort by Path")));
976
976
  }
977
977
  }
978
978
  registerAction2(RepositorySortByDiscoveryTimeAction);
@@ -997,17 +997,17 @@ class SetSortKeyAction extends ViewAction {
997
997
  }
998
998
  class SetSortByNameAction extends SetSortKeyAction {
999
999
  constructor() {
1000
- super("name" , ( localize(6348, "Sort Changes by Name")));
1000
+ super("name" , ( localize(6324, "Sort Changes by Name")));
1001
1001
  }
1002
1002
  }
1003
1003
  class SetSortByPathAction extends SetSortKeyAction {
1004
1004
  constructor() {
1005
- super("path" , ( localize(6349, "Sort Changes by Path")));
1005
+ super("path" , ( localize(6325, "Sort Changes by Path")));
1006
1006
  }
1007
1007
  }
1008
1008
  class SetSortByStatusAction extends SetSortKeyAction {
1009
1009
  constructor() {
1010
- super("status" , ( localize(6350, "Sort Changes by Status")));
1010
+ super("status" , ( localize(6326, "Sort Changes by Status")));
1011
1011
  }
1012
1012
  }
1013
1013
  registerAction2(SetSortByNameAction);
@@ -1017,7 +1017,7 @@ class CollapseAllRepositoriesAction extends ViewAction {
1017
1017
  constructor() {
1018
1018
  super({
1019
1019
  id: `workbench.scm.action.collapseAllRepositories`,
1020
- title: ( localize(6351, "Collapse All Repositories")),
1020
+ title: ( localize(6327, "Collapse All Repositories")),
1021
1021
  viewId: VIEW_PANE_ID,
1022
1022
  f1: false,
1023
1023
  icon: Codicon.collapseAll,
@@ -1040,7 +1040,7 @@ class ExpandAllRepositoriesAction extends ViewAction {
1040
1040
  constructor() {
1041
1041
  super({
1042
1042
  id: `workbench.scm.action.expandAllRepositories`,
1043
- title: ( localize(6352, "Expand All Repositories")),
1043
+ title: ( localize(6328, "Expand All Repositories")),
1044
1044
  viewId: VIEW_PANE_ID,
1045
1045
  f1: false,
1046
1046
  icon: Codicon.expandAll,
@@ -1111,10 +1111,10 @@ let SCMInputWidgetToolbar = class SCMInputWidgetToolbar extends WorkbenchToolBar
1111
1111
  this._onDidChange = ( (new Emitter()));
1112
1112
  this.onDidChange = this._onDidChange.event;
1113
1113
  this._disposables = this._register(( (new MutableDisposable())));
1114
- this._dropdownAction = ( (new Action('scmInputMoreActions', ( localize(6353, "More Actions...")), 'codicon-chevron-down')));
1114
+ this._dropdownAction = ( (new Action('scmInputMoreActions', ( localize(6329, "More Actions...")), 'codicon-chevron-down')));
1115
1115
  this._cancelAction = ( (new MenuItemAction({
1116
1116
  id: "scm.input.cancelAction" ,
1117
- title: ( localize(6354, "Cancel")),
1117
+ title: ( localize(6330, "Cancel")),
1118
1118
  icon: Codicon.debugStop,
1119
1119
  }, undefined, undefined, undefined, undefined, contextKeyService, commandService)));
1120
1120
  }
@@ -1564,7 +1564,7 @@ let SCMInputWidget = class SCMInputWidget {
1564
1564
  }
1565
1565
  const actionsContainer = append(validationContainer, $('.scm-editor-validation-actions'));
1566
1566
  const actionbar = ( (new ActionBar(actionsContainer)));
1567
- const action = ( (new Action('scmInputWidget.validationMessage.close', ( localize(6355, "Close")), ThemeIcon.asClassName(Codicon.close), true, () => {
1567
+ const action = ( (new Action('scmInputWidget.validationMessage.close', ( localize(6331, "Close")), ThemeIcon.asClassName(Codicon.close), true, () => {
1568
1568
  this.contextViewService.hideContextView();
1569
1569
  this.element.style.borderBottomLeftRadius = '2px';
1570
1570
  this.element.style.borderBottomRightRadius = '2px';
@@ -36,7 +36,7 @@ let SCMViewPaneContainer = class SCMViewPaneContainer extends ViewPaneContainer
36
36
  return super.getTitle();
37
37
  }
38
38
  }
39
- return ( localize(6337, "Source Control"));
39
+ return ( localize(6309, "Source Control"));
40
40
  }
41
41
  };
42
42
  SCMViewPaneContainer = ( (__decorate([