@codingame/monaco-vscode-view-banner-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.
package/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
export {
|
|
1
|
+
export * from 'vscode/service-override/viewBanner';
|
|
2
|
+
export { default } from 'vscode/service-override/viewBanner';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-view-banner-service-override",
|
|
3
|
-
"version": "4.5.
|
|
3
|
+
"version": "4.5.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@4.5.
|
|
29
|
+
"vscode": "npm:@codingame/monaco-vscode-api@4.5.2"
|
|
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,
|
package/viewBanner.d.ts
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { Event } from 'vscode/vscode/vs/base/common/event';
|
|
2
|
-
import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
3
|
-
import { IStorageService } from 'vscode/vscode/vs/platform/storage/common/storage.service';
|
|
4
|
-
import { IThemeService } from 'vscode/vscode/vs/platform/theme/common/themeService.service';
|
|
5
|
-
import { Part } from 'vscode/vscode/vs/workbench/browser/part';
|
|
6
|
-
import { IWorkbenchLayoutService } from 'vscode/vscode/vs/workbench/services/layout/browser/layoutService.service';
|
|
7
|
-
import { IBannerItem } from 'vscode/vscode/vs/workbench/services/banner/browser/bannerService';
|
|
8
|
-
import { IBannerService } from 'vscode/vscode/vs/workbench/services/banner/browser/bannerService.service';
|
|
9
|
-
import { IContextKeyService } from 'vscode/vscode/vs/platform/contextkey/common/contextkey.service';
|
|
10
|
-
|
|
11
|
-
declare class BannerPart extends Part implements IBannerService {
|
|
12
|
-
private readonly contextKeyService;
|
|
13
|
-
private readonly instantiationService;
|
|
14
|
-
readonly _serviceBrand: undefined;
|
|
15
|
-
readonly height: number;
|
|
16
|
-
readonly minimumWidth: number;
|
|
17
|
-
readonly maximumWidth: number;
|
|
18
|
-
get minimumHeight(): number;
|
|
19
|
-
get maximumHeight(): number;
|
|
20
|
-
private _onDidChangeSize;
|
|
21
|
-
get onDidChange(): Event<{
|
|
22
|
-
width: number;
|
|
23
|
-
height: number;
|
|
24
|
-
} | undefined>;
|
|
25
|
-
private item;
|
|
26
|
-
private readonly markdownRenderer;
|
|
27
|
-
private visible;
|
|
28
|
-
private actionBar;
|
|
29
|
-
private messageActionsContainer;
|
|
30
|
-
private focusedActionIndex;
|
|
31
|
-
constructor(themeService: IThemeService, layoutService: IWorkbenchLayoutService, storageService: IStorageService, contextKeyService: IContextKeyService, instantiationService: IInstantiationService);
|
|
32
|
-
protected createContentArea(parent: HTMLElement): HTMLElement;
|
|
33
|
-
private close;
|
|
34
|
-
private focusActionLink;
|
|
35
|
-
private getAriaLabel;
|
|
36
|
-
private getBannerMessage;
|
|
37
|
-
private setVisibility;
|
|
38
|
-
focus(): void;
|
|
39
|
-
focusNextAction(): void;
|
|
40
|
-
focusPreviousAction(): void;
|
|
41
|
-
hide(id: string): void;
|
|
42
|
-
show(item: IBannerItem): void;
|
|
43
|
-
toJSON(): object;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
export { BannerPart };
|