@codingame/monaco-vscode-scm-service-override 4.5.0 → 4.5.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.
@@ -22,6 +22,7 @@ import { Iterable } from 'vscode/vscode/vs/base/common/iterator';
22
22
  import { DisposableStore } from 'vscode/vscode/vs/base/common/lifecycle';
23
23
  import { MenuId } from 'vscode/vscode/vs/platform/actions/common/actions';
24
24
 
25
+ const _moduleId = "vs/workbench/contrib/scm/browser/scmRepositoriesViewPane";
25
26
  class ListDelegate {
26
27
  getHeight() {
27
28
  return 22;
@@ -34,7 +35,7 @@ let SCMRepositoriesViewPane = class SCMRepositoriesViewPane extends ViewPane {
34
35
  constructor(options, scmViewService, keybindingService, contextMenuService, instantiationService, viewDescriptorService, contextKeyService, configurationService, openerService, themeService, telemetryService) {
35
36
  super({ ...options, titleMenuId: MenuId.SCMSourceControlTitle }, keybindingService, contextMenuService, configurationService, contextKeyService, viewDescriptorService, instantiationService, openerService, themeService, telemetryService);
36
37
  this.scmViewService = scmViewService;
37
- this.disposables = ( new DisposableStore());
38
+ this.disposables = ( (new DisposableStore()));
38
39
  }
39
40
  renderBody(container) {
40
41
  super.renderBody(container);
@@ -46,7 +47,7 @@ let SCMRepositoriesViewPane = class SCMRepositoriesViewPane extends ViewPane {
46
47
  };
47
48
  this._register(Event.filter(this.configurationService.onDidChangeConfiguration, e => e.affectsConfiguration('scm.providerCountBadge'), this.disposables)(updateProviderCountVisibility));
48
49
  updateProviderCountVisibility();
49
- const delegate = ( new ListDelegate());
50
+ const delegate = ( (new ListDelegate()));
50
51
  const renderer = this.instantiationService.createInstance(RepositoryRenderer, MenuId.SCMSourceControlInline, getActionViewItemProvider(this.instantiationService));
51
52
  const identityProvider = { getId: (r) => r.provider.id };
52
53
  this.list = this.instantiationService.createInstance(WorkbenchList, `SCM Main`, listContainer, delegate, [renderer], {
@@ -60,11 +61,7 @@ let SCMRepositoriesViewPane = class SCMRepositoriesViewPane extends ViewPane {
60
61
  return r.provider.label;
61
62
  },
62
63
  getWidgetAriaLabel() {
63
- return ( localizeWithPath(
64
- 'vs/workbench/contrib/scm/browser/scmRepositoriesViewPane',
65
- 'scm',
66
- "Source Control Repositories"
67
- ));
64
+ return ( localizeWithPath(_moduleId, 0, "Source Control Repositories"));
68
65
  }
69
66
  }
70
67
  });
@@ -113,9 +110,9 @@ let SCMRepositoriesViewPane = class SCMRepositoriesViewPane extends ViewPane {
113
110
  const menus = this.scmViewService.menus.getRepositoryMenus(provider);
114
111
  const menu = menus.repositoryContextMenu;
115
112
  const actions = collectContextMenuActions(menu);
116
- const actionRunner = this._register(( new RepositoryActionRunner(() => {
113
+ const actionRunner = this._register(( (new RepositoryActionRunner(() => {
117
114
  return this.list.getSelectedElements();
118
- })));
115
+ }))));
119
116
  actionRunner.onWillRun(() => this.list.domFocus());
120
117
  this.contextMenuService.showContextMenu({
121
118
  actionRunner,
@@ -133,17 +130,17 @@ let SCMRepositoriesViewPane = class SCMRepositoriesViewPane extends ViewPane {
133
130
  }
134
131
  updateListSelection() {
135
132
  const oldSelection = this.list.getSelection();
136
- const oldSet = ( new Set(( Iterable.map(oldSelection, i => this.list.element(i)))));
137
- const set = ( new Set(this.scmViewService.visibleRepositories));
138
- const added = ( new Set(Iterable.filter(set, r => !( oldSet.has(r)))));
139
- const removed = ( new Set(Iterable.filter(oldSet, r => !( set.has(r)))));
133
+ const oldSet = ( (new Set( (Iterable.map(oldSelection, i => this.list.element(i))))));
134
+ const set = ( (new Set(this.scmViewService.visibleRepositories)));
135
+ const added = ( (new Set(Iterable.filter(set, r => !( (oldSet.has(r)))))));
136
+ const removed = ( (new Set(Iterable.filter(oldSet, r => !( (set.has(r)))))));
140
137
  if (added.size === 0 && removed.size === 0) {
141
138
  return;
142
139
  }
143
140
  const selection = oldSelection
144
- .filter(i => !( removed.has(this.list.element(i))));
141
+ .filter(i => !( (removed.has(this.list.element(i)))));
145
142
  for (let i = 0; i < this.list.length; i++) {
146
- if (( added.has(this.list.element(i)))) {
143
+ if (( (added.has(this.list.element(i))))) {
147
144
  selection.push(i);
148
145
  }
149
146
  }
@@ -158,17 +155,17 @@ let SCMRepositoriesViewPane = class SCMRepositoriesViewPane extends ViewPane {
158
155
  super.dispose();
159
156
  }
160
157
  };
161
- SCMRepositoriesViewPane = ( __decorate([
162
- ( __param(1, ISCMViewService)),
163
- ( __param(2, IKeybindingService)),
164
- ( __param(3, IContextMenuService)),
165
- ( __param(4, IInstantiationService)),
166
- ( __param(5, IViewDescriptorService)),
167
- ( __param(6, IContextKeyService)),
168
- ( __param(7, IConfigurationService)),
169
- ( __param(8, IOpenerService)),
170
- ( __param(9, IThemeService)),
171
- ( __param(10, ITelemetryService))
172
- ], SCMRepositoriesViewPane));
158
+ SCMRepositoriesViewPane = ( (__decorate([
159
+ ( (__param(1, ISCMViewService))),
160
+ ( (__param(2, IKeybindingService))),
161
+ ( (__param(3, IContextMenuService))),
162
+ ( (__param(4, IInstantiationService))),
163
+ ( (__param(5, IViewDescriptorService))),
164
+ ( (__param(6, IContextKeyService))),
165
+ ( (__param(7, IConfigurationService))),
166
+ ( (__param(8, IOpenerService))),
167
+ ( (__param(9, IThemeService))),
168
+ ( (__param(10, ITelemetryService)))
169
+ ], SCMRepositoriesViewPane)));
173
170
 
174
171
  export { SCMRepositoriesViewPane };
@@ -114,7 +114,7 @@ let RepositoryRenderer = class RepositoryRenderer {
114
114
  templateData.toolBar.context = repository.provider;
115
115
  }
116
116
  renderCompressedElements() {
117
- throw new Error('Should never happen since node is incompressible');
117
+ throw ( new Error('Should never happen since node is incompressible'));
118
118
  }
119
119
  disposeElement(group, index, template) {
120
120
  template.elementDisposables.clear();