@codingame/monaco-vscode-view-banner-service-override 22.1.9 → 23.0.1

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": "22.1.9",
3
+ "version": "23.0.1",
4
4
  "private": false,
5
5
  "description": "VSCode public API plugged on the monaco editor - view-banner service-override",
6
6
  "keywords": [],
@@ -15,9 +15,9 @@
15
15
  },
16
16
  "type": "module",
17
17
  "dependencies": {
18
- "@codingame/monaco-vscode-4bf376c2-03c7-58cb-8303-c67aeefa3d3d-common": "22.1.9",
19
- "@codingame/monaco-vscode-85886bdb-61c5-52f1-8eb7-d1d32f6f8cbd-common": "22.1.9",
20
- "@codingame/monaco-vscode-api": "22.1.9"
18
+ "@codingame/monaco-vscode-4bf376c2-03c7-58cb-8303-c67aeefa3d3d-common": "23.0.1",
19
+ "@codingame/monaco-vscode-85886bdb-61c5-52f1-8eb7-d1d32f6f8cbd-common": "23.0.1",
20
+ "@codingame/monaco-vscode-api": "23.0.1"
21
21
  },
22
22
  "main": "index.js",
23
23
  "module": "index.js",
@@ -5,10 +5,12 @@ import { Part } from "@codingame/monaco-vscode-85886bdb-61c5-52f1-8eb7-d1d32f6f8
5
5
  import { IWorkbenchLayoutService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/layout/browser/layoutService.service";
6
6
  import { IBannerItem } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/banner/browser/bannerService";
7
7
  import { IBannerService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/banner/browser/bannerService.service";
8
+ import { IMarkdownRendererService } from "@codingame/monaco-vscode-api/vscode/vs/platform/markdown/browser/markdownRenderer.service";
8
9
  import { IContextKeyService } from "@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service";
9
10
  export declare class BannerPart extends Part implements IBannerService {
10
11
  private readonly contextKeyService;
11
12
  private readonly instantiationService;
13
+ private readonly markdownRendererService;
12
14
  readonly _serviceBrand: undefined;
13
15
  readonly height: number;
14
16
  readonly minimumWidth: number;
@@ -21,12 +23,11 @@ export declare class BannerPart extends Part implements IBannerService {
21
23
  height: number;
22
24
  } | undefined>;
23
25
  private item;
24
- private readonly markdownRenderer;
25
26
  private visible;
26
27
  private actionBar;
27
28
  private messageActionsContainer;
28
29
  private focusedActionIndex;
29
- constructor(themeService: IThemeService, layoutService: IWorkbenchLayoutService, storageService: IStorageService, contextKeyService: IContextKeyService, instantiationService: IInstantiationService);
30
+ constructor(themeService: IThemeService, layoutService: IWorkbenchLayoutService, storageService: IStorageService, contextKeyService: IContextKeyService, instantiationService: IInstantiationService, markdownRendererService: IMarkdownRendererService);
30
31
  protected createContentArea(parent: HTMLElement): HTMLElement;
31
32
  private close;
32
33
  private focusActionLink;
@@ -18,7 +18,7 @@ import { Action } from '@codingame/monaco-vscode-api/vscode/vs/base/common/actio
18
18
  import { Link } from '@codingame/monaco-vscode-api/vscode/vs/platform/opener/browser/link';
19
19
  import { Emitter } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
20
20
  import { IBannerService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/banner/browser/bannerService.service';
21
- import { MarkdownRenderer } from '@codingame/monaco-vscode-api/vscode/vs/editor/browser/widget/markdownRenderer/browser/markdownRenderer';
21
+ import { IMarkdownRendererService } from '@codingame/monaco-vscode-api/vscode/vs/platform/markdown/browser/markdownRenderer.service';
22
22
  import { Action2, registerAction2 } from '@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions';
23
23
  import { Categories } from '@codingame/monaco-vscode-api/vscode/vs/platform/action/common/actionCommonCategories';
24
24
  import { KeybindingsRegistry, KeybindingWeight } from '@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybindingsRegistry';
@@ -37,17 +37,17 @@ let BannerPart = class BannerPart extends Part {
37
37
  return this.visible ? this.height : 0;
38
38
  }
39
39
  get onDidChange() { return this._onDidChangeSize.event; }
40
- constructor(themeService, layoutService, storageService, contextKeyService, instantiationService) {
40
+ constructor(themeService, layoutService, storageService, contextKeyService, instantiationService, markdownRendererService) {
41
41
  super(Parts.BANNER_PART, { hasTitle: false }, themeService, storageService, layoutService);
42
42
  this.contextKeyService = contextKeyService;
43
43
  this.instantiationService = instantiationService;
44
+ this.markdownRendererService = markdownRendererService;
44
45
  this.height = 26;
45
46
  this.minimumWidth = 0;
46
47
  this.maximumWidth = Number.POSITIVE_INFINITY;
47
48
  this._onDidChangeSize = this._register(( new Emitter()));
48
49
  this.visible = false;
49
50
  this.focusedActionIndex = -1;
50
- this.markdownRenderer = this.instantiationService.createInstance(MarkdownRenderer, {});
51
51
  }
52
52
  createContentArea(parent) {
53
53
  this.element = parent;
@@ -97,7 +97,7 @@ let BannerPart = class BannerPart extends Part {
97
97
  element.textContent = message;
98
98
  return element;
99
99
  }
100
- return this.markdownRenderer.render(message).element;
100
+ return this.markdownRendererService.render(message).element;
101
101
  }
102
102
  setVisibility(visible) {
103
103
  if (visible !== this.visible) {
@@ -159,7 +159,7 @@ let BannerPart = class BannerPart extends Part {
159
159
  }
160
160
  const actionBarContainer = append(this.element, $('div.action-container'));
161
161
  this.actionBar = this._register(( new ActionBar(actionBarContainer)));
162
- const label = item.closeLabel ?? ( localize(2953, "Close Banner"));
162
+ const label = item.closeLabel ?? ( localize(2973, "Close Banner"));
163
163
  const closeAction = this._register(( new Action(
164
164
  'banner.close',
165
165
  label,
@@ -183,7 +183,8 @@ BannerPart = ( __decorate([
183
183
  ( __param(1, IWorkbenchLayoutService)),
184
184
  ( __param(2, IStorageService)),
185
185
  ( __param(3, IContextKeyService)),
186
- ( __param(4, IInstantiationService))
186
+ ( __param(4, IInstantiationService)),
187
+ ( __param(5, IMarkdownRendererService))
187
188
  ], BannerPart));
188
189
  KeybindingsRegistry.registerCommandAndKeybindingRule({
189
190
  id: 'workbench.banner.focusBanner',
@@ -219,7 +220,7 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
219
220
  });
220
221
  class FocusBannerAction extends Action2 {
221
222
  static { this.ID = 'workbench.action.focusBanner'; }
222
- static { this.LABEL = ( localize2(2954, "Focus Banner")); }
223
+ static { this.LABEL = ( localize2(2974, "Focus Banner")); }
223
224
  constructor() {
224
225
  super({
225
226
  id: FocusBannerAction.ID,