@codingame/monaco-vscode-view-banner-service-override 4.5.1 → 5.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codingame/monaco-vscode-view-banner-service-override",
3
- "version": "4.5.1",
3
+ "version": "5.0.0",
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@4.5.1"
29
+ "vscode": "npm:@codingame/monaco-vscode-api@5.0.0"
30
30
  }
31
31
  }
@@ -22,6 +22,7 @@ import { URI } from 'vscode/vscode/vs/base/common/uri';
22
22
  import { widgetClose } from 'vscode/vscode/vs/platform/theme/common/iconRegistry';
23
23
  import { BannerFocused } from 'vscode/vscode/vs/workbench/common/contextkeys';
24
24
 
25
+ const _moduleId = "vs/workbench/browser/parts/banner/bannerPart";
25
26
  let BannerPart = class BannerPart extends Part {
26
27
  get minimumHeight() {
27
28
  return this.visible ? this.height : 0;
@@ -37,7 +38,7 @@ let BannerPart = class BannerPart extends Part {
37
38
  this.height = 26;
38
39
  this.minimumWidth = 0;
39
40
  this.maximumWidth = Number.POSITIVE_INFINITY;
40
- this._onDidChangeSize = this._register(( new Emitter()));
41
+ this._onDidChangeSize = this._register(( (new Emitter())));
41
42
  this.visible = false;
42
43
  this.focusedActionIndex = -1;
43
44
  this.markdownRenderer = this.instantiationService.createInstance(MarkdownRenderer, {});
@@ -151,15 +152,15 @@ let BannerPart = class BannerPart extends Part {
151
152
  }
152
153
  }
153
154
  const actionBarContainer = append(this.element, $('div.action-container'));
154
- this.actionBar = this._register(( new ActionBar(actionBarContainer)));
155
+ this.actionBar = this._register(( (new ActionBar(actionBarContainer))));
155
156
  const label = item.closeLabel ?? 'Close Banner';
156
- const closeAction = this._register(( new Action(
157
+ const closeAction = this._register(( (new Action(
157
158
  'banner.close',
158
159
  label,
159
160
  ThemeIcon.asClassName(widgetClose),
160
161
  true,
161
162
  () => this.close(item)
162
- )));
163
+ ))));
163
164
  this.actionBar.push(closeAction, { icon: true, label: false });
164
165
  this.actionBar.setFocusable(false);
165
166
  this.setVisibility(true);
@@ -171,13 +172,13 @@ let BannerPart = class BannerPart extends Part {
171
172
  };
172
173
  }
173
174
  };
174
- BannerPart = ( __decorate([
175
- ( __param(0, IThemeService)),
176
- ( __param(1, IWorkbenchLayoutService)),
177
- ( __param(2, IStorageService)),
178
- ( __param(3, IContextKeyService)),
179
- ( __param(4, IInstantiationService))
180
- ], BannerPart));
175
+ BannerPart = ( (__decorate([
176
+ ( (__param(0, IThemeService))),
177
+ ( (__param(1, IWorkbenchLayoutService))),
178
+ ( (__param(2, IStorageService))),
179
+ ( (__param(3, IContextKeyService))),
180
+ ( (__param(4, IInstantiationService)))
181
+ ], BannerPart)));
181
182
  KeybindingsRegistry.registerCommandAndKeybindingRule({
182
183
  id: 'workbench.banner.focusBanner',
183
184
  weight: 200 ,
@@ -212,11 +213,7 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
212
213
  });
213
214
  class FocusBannerAction extends Action2 {
214
215
  static { this.ID = 'workbench.action.focusBanner'; }
215
- static { this.LABEL = ( localize2WithPath(
216
- 'vs/workbench/browser/parts/banner/bannerPart',
217
- 'focusBanner',
218
- "Focus Banner"
219
- )); }
216
+ static { this.LABEL = ( localize2WithPath(_moduleId, 0, "Focus Banner")); }
220
217
  constructor() {
221
218
  super({
222
219
  id: FocusBannerAction.ID,