@codingame/monaco-vscode-view-banner-service-override 4.4.1 → 4.5.0-improve-code-splitting.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/index.d.ts +1 -1
- package/package.json +10 -2
- package/viewBanner.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/banner/bannerPart.d.ts +46 -0
- package/vscode/src/vs/workbench/browser/parts/banner/bannerPart.js +5 -5
- package/vscode/src/vs/workbench/contrib/welcomeBanner/browser/welcomeBanner.contribution.js +3 -3
package/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default } from './viewBanner.js';
|
|
2
|
-
export { BannerPart } from 'vscode/
|
|
2
|
+
export { BannerPart } from './vscode/src/vs/workbench/browser/parts/banner/bannerPart.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-view-banner-service-override",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.5.0-improve-code-splitting.1",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "CodinGame",
|
|
@@ -17,7 +17,15 @@
|
|
|
17
17
|
"main": "index.js",
|
|
18
18
|
"module": "index.js",
|
|
19
19
|
"types": "index.d.ts",
|
|
20
|
+
"exports": {
|
|
21
|
+
".": {
|
|
22
|
+
"default": "./index.js"
|
|
23
|
+
},
|
|
24
|
+
"./vscode/*": {
|
|
25
|
+
"default": "./vscode/src/*.js"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
20
28
|
"dependencies": {
|
|
21
|
-
"vscode": "npm:@codingame/monaco-vscode-api@4.
|
|
29
|
+
"vscode": "npm:@codingame/monaco-vscode-api@4.5.0-improve-code-splitting.1"
|
|
22
30
|
}
|
|
23
31
|
}
|
package/viewBanner.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SyncDescriptor } from 'vscode/vscode/vs/platform/instantiation/common/descriptors';
|
|
2
2
|
import { BannerPart } from './vscode/src/vs/workbench/browser/parts/banner/bannerPart.js';
|
|
3
|
-
import { IBannerService } from 'vscode/vscode/vs/workbench/services/banner/browser/bannerService';
|
|
3
|
+
import { IBannerService } from 'vscode/vscode/vs/workbench/services/banner/browser/bannerService.service';
|
|
4
4
|
import { registerServiceInitializePostParticipant } from 'vscode/lifecycle';
|
|
5
5
|
import './vscode/src/vs/workbench/contrib/welcomeBanner/browser/welcomeBanner.contribution.js';
|
|
6
6
|
|
|
@@ -0,0 +1,46 @@
|
|
|
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 };
|
|
@@ -4,20 +4,20 @@ import { localize2WithPath } from 'vscode/vscode/vs/nls';
|
|
|
4
4
|
import { addDisposableListener, EventType, clearNode, $, append, asCSSUrl } from 'vscode/vscode/vs/base/browser/dom';
|
|
5
5
|
import { ActionBar } from 'vscode/vscode/vs/base/browser/ui/actionbar/actionbar';
|
|
6
6
|
import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
7
|
-
import { IStorageService } from 'vscode/vscode/vs/platform/storage/common/storage';
|
|
8
|
-
import { IThemeService } from 'vscode/vscode/vs/platform/theme/common/themeService';
|
|
7
|
+
import { IStorageService } from 'vscode/vscode/vs/platform/storage/common/storage.service';
|
|
8
|
+
import { IThemeService } from 'vscode/vscode/vs/platform/theme/common/themeService.service';
|
|
9
9
|
import { ThemeIcon } from 'vscode/vscode/vs/base/common/themables';
|
|
10
10
|
import { Part } from 'vscode/vscode/vs/workbench/browser/part';
|
|
11
|
-
import { IWorkbenchLayoutService } from 'vscode/vscode/vs/workbench/services/layout/browser/layoutService';
|
|
11
|
+
import { IWorkbenchLayoutService } from 'vscode/vscode/vs/workbench/services/layout/browser/layoutService.service';
|
|
12
12
|
import { Action } from 'vscode/vscode/vs/base/common/actions';
|
|
13
13
|
import { Link } from 'vscode/vscode/vs/platform/opener/browser/link';
|
|
14
14
|
import { Emitter } from 'vscode/vscode/vs/base/common/event';
|
|
15
|
-
import { IBannerService } from 'vscode/vscode/vs/workbench/services/banner/browser/bannerService';
|
|
15
|
+
import { IBannerService } from 'vscode/vscode/vs/workbench/services/banner/browser/bannerService.service';
|
|
16
16
|
import { MarkdownRenderer } from 'vscode/vscode/vs/editor/browser/widget/markdownRenderer/browser/markdownRenderer';
|
|
17
17
|
import { Action2, registerAction2 } from 'vscode/vscode/vs/platform/actions/common/actions';
|
|
18
18
|
import { Categories } from 'vscode/vscode/vs/platform/action/common/actionCommonCategories';
|
|
19
19
|
import { KeybindingsRegistry } from 'vscode/vscode/vs/platform/keybinding/common/keybindingsRegistry';
|
|
20
|
-
import { IContextKeyService } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
|
|
20
|
+
import { IContextKeyService } from 'vscode/vscode/vs/platform/contextkey/common/contextkey.service';
|
|
21
21
|
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';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
|
|
2
2
|
import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
|
|
3
3
|
import { Extensions } from 'vscode/vscode/vs/workbench/common/contributions';
|
|
4
|
-
import { IBannerService } from 'vscode/vscode/vs/workbench/services/banner/browser/bannerService';
|
|
5
|
-
import { IStorageService } from 'vscode/vscode/vs/platform/storage/common/storage';
|
|
6
|
-
import { IBrowserWorkbenchEnvironmentService } from 'vscode/vscode/vs/workbench/services/environment/browser/environmentService';
|
|
4
|
+
import { IBannerService } from 'vscode/vscode/vs/workbench/services/banner/browser/bannerService.service';
|
|
5
|
+
import { IStorageService } from 'vscode/vscode/vs/platform/storage/common/storage.service';
|
|
6
|
+
import { IBrowserWorkbenchEnvironmentService } from 'vscode/vscode/vs/workbench/services/environment/browser/environmentService.service';
|
|
7
7
|
import { URI } from 'vscode/vscode/vs/base/common/uri';
|
|
8
8
|
import { ThemeIcon } from 'vscode/vscode/vs/base/common/themables';
|
|
9
9
|
|