@codingame/monaco-vscode-view-banner-service-override 11.1.2 → 12.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/index.d.ts +4 -2
- package/index.js +17 -2
- package/package.json +16 -7
- package/vscode/src/vs/workbench/browser/parts/banner/bannerPart.d.ts +42 -0
- package/vscode/src/vs/workbench/browser/parts/banner/bannerPart.js +31 -27
- package/vscode/src/vs/workbench/browser/parts/banner/media/bannerpart.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/welcomeBanner/browser/welcomeBanner.contribution.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/welcomeBanner/browser/welcomeBanner.contribution.js +7 -4
- package/viewBanner.js +0 -16
package/index.d.ts
CHANGED
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import type { IEditorOverrideServices } from "vscode/vscode/vs/editor/standalone/browser/standaloneServices";
|
|
2
|
+
import { BannerPart } from "./vscode/src/vs/workbench/browser/parts/banner/bannerPart.js";
|
|
3
|
+
export default function getServiceOverride(): IEditorOverrideServices;
|
|
4
|
+
export { BannerPart };
|
package/index.js
CHANGED
|
@@ -1,2 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
|
|
2
|
+
import { SyncDescriptor } from 'vscode/vscode/vs/platform/instantiation/common/descriptors';
|
|
3
|
+
import { BannerPart } from './vscode/src/vs/workbench/browser/parts/banner/bannerPart.js';
|
|
4
|
+
import { IBannerService } from 'vscode/vscode/vs/workbench/services/banner/browser/bannerService.service';
|
|
5
|
+
import { registerServiceInitializePostParticipant } from 'vscode/lifecycle';
|
|
6
|
+
import './vscode/src/vs/workbench/contrib/welcomeBanner/browser/welcomeBanner.contribution.js';
|
|
7
|
+
|
|
8
|
+
function getServiceOverride() {
|
|
9
|
+
return {
|
|
10
|
+
[IBannerService.toString()]: new SyncDescriptor(BannerPart, [], false)
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
registerServiceInitializePostParticipant(async (accessor) => {
|
|
14
|
+
accessor.get(IBannerService);
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
export { BannerPart, getServiceOverride as default };
|
package/package.json
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-view-banner-service-override",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "12.0.1",
|
|
4
|
+
"private": false,
|
|
5
|
+
"description": "VSCode public API plugged on the monaco editor - view-banner service-override",
|
|
4
6
|
"keywords": [],
|
|
5
7
|
"author": {
|
|
6
8
|
"name": "CodinGame",
|
|
@@ -12,8 +14,13 @@
|
|
|
12
14
|
"url": "git+ssh://git@github.com/CodinGame/monaco-vscode-api.git"
|
|
13
15
|
},
|
|
14
16
|
"type": "module",
|
|
15
|
-
"
|
|
16
|
-
|
|
17
|
+
"dependencies": {
|
|
18
|
+
"@codingame/monaco-vscode-d8236b3b-b91a-522d-89f4-94d70a546f6a-common": "12.0.1",
|
|
19
|
+
"@codingame/monaco-vscode-e571cbbb-526b-5d8b-92c5-a0437d2dabb3-common": "12.0.1",
|
|
20
|
+
"vscode": "npm:@codingame/monaco-vscode-api@12.0.1"
|
|
21
|
+
},
|
|
22
|
+
"peerDependencies": {},
|
|
23
|
+
"peerDependenciesMeta": {},
|
|
17
24
|
"main": "index.js",
|
|
18
25
|
"module": "index.js",
|
|
19
26
|
"types": "index.d.ts",
|
|
@@ -22,10 +29,12 @@
|
|
|
22
29
|
"default": "./index.js"
|
|
23
30
|
},
|
|
24
31
|
"./vscode/*": {
|
|
25
|
-
"default": "./vscode/src/*.js"
|
|
32
|
+
"default": "./vscode/src/*.js",
|
|
33
|
+
"types": "./vscode/src/*.d.ts"
|
|
34
|
+
},
|
|
35
|
+
"./*": {
|
|
36
|
+
"default": "./*.js",
|
|
37
|
+
"types": "./*.d.ts"
|
|
26
38
|
}
|
|
27
|
-
},
|
|
28
|
-
"dependencies": {
|
|
29
|
-
"vscode": "npm:@codingame/monaco-vscode-api@11.1.2"
|
|
30
39
|
}
|
|
31
40
|
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { IInstantiationService } from "vscode/vscode/vs/platform/instantiation/common/instantiation";
|
|
2
|
+
import { IStorageService } from "vscode/vscode/vs/platform/storage/common/storage.service";
|
|
3
|
+
import { IThemeService } from "vscode/vscode/vs/platform/theme/common/themeService.service";
|
|
4
|
+
import { Part } from "@codingame/monaco-vscode-d8236b3b-b91a-522d-89f4-94d70a546f6a-common/vscode/vs/workbench/browser/part";
|
|
5
|
+
import { IWorkbenchLayoutService } from "vscode/vscode/vs/workbench/services/layout/browser/layoutService.service";
|
|
6
|
+
import { IBannerItem } from "vscode/vscode/vs/workbench/services/banner/browser/bannerService";
|
|
7
|
+
import { IBannerService } from "vscode/vscode/vs/workbench/services/banner/browser/bannerService.service";
|
|
8
|
+
import { IContextKeyService } from "vscode/vscode/vs/platform/contextkey/common/contextkey.service";
|
|
9
|
+
export declare class BannerPart extends Part implements IBannerService {
|
|
10
|
+
private readonly contextKeyService;
|
|
11
|
+
private readonly instantiationService;
|
|
12
|
+
readonly _serviceBrand: undefined;
|
|
13
|
+
readonly height: number;
|
|
14
|
+
readonly minimumWidth: number;
|
|
15
|
+
readonly maximumWidth: number;
|
|
16
|
+
get minimumHeight(): number;
|
|
17
|
+
get maximumHeight(): number;
|
|
18
|
+
private _onDidChangeSize;
|
|
19
|
+
get onDidChange(): import("vscode/vscode/vs/base/common/event").Event<{
|
|
20
|
+
width: number;
|
|
21
|
+
height: number;
|
|
22
|
+
} | undefined>;
|
|
23
|
+
private item;
|
|
24
|
+
private readonly markdownRenderer;
|
|
25
|
+
private visible;
|
|
26
|
+
private actionBar;
|
|
27
|
+
private messageActionsContainer;
|
|
28
|
+
private focusedActionIndex;
|
|
29
|
+
constructor(themeService: IThemeService, layoutService: IWorkbenchLayoutService, storageService: IStorageService, contextKeyService: IContextKeyService, instantiationService: IInstantiationService);
|
|
30
|
+
protected createContentArea(parent: HTMLElement): HTMLElement;
|
|
31
|
+
private close;
|
|
32
|
+
private focusActionLink;
|
|
33
|
+
private getAriaLabel;
|
|
34
|
+
private getBannerMessage;
|
|
35
|
+
private setVisibility;
|
|
36
|
+
focus(): void;
|
|
37
|
+
focusNextAction(): void;
|
|
38
|
+
focusPreviousAction(): void;
|
|
39
|
+
hide(id: string): void;
|
|
40
|
+
show(item: IBannerItem): void;
|
|
41
|
+
toJSON(): object;
|
|
42
|
+
}
|
|
@@ -1,14 +1,17 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
|
|
2
3
|
import './media/bannerpart.css.js';
|
|
3
4
|
import { localize2 } from 'vscode/vscode/vs/nls';
|
|
4
5
|
import { addDisposableListener, EventType, clearNode, isHTMLElement, $, append } from 'vscode/vscode/vs/base/browser/dom';
|
|
5
6
|
import { asCSSUrl } from 'vscode/vscode/vs/base/browser/cssValue';
|
|
6
7
|
import { ActionBar } from 'vscode/vscode/vs/base/browser/ui/actionbar/actionbar';
|
|
8
|
+
import 'vscode/vscode/vs/platform/instantiation/common/extensions';
|
|
7
9
|
import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
8
10
|
import { IStorageService } from 'vscode/vscode/vs/platform/storage/common/storage.service';
|
|
9
11
|
import { IThemeService } from 'vscode/vscode/vs/platform/theme/common/themeService.service';
|
|
10
12
|
import { ThemeIcon } from 'vscode/vscode/vs/base/common/themables';
|
|
11
|
-
import { Part } from 'vscode/vscode/vs/workbench/browser/part';
|
|
13
|
+
import { Part } from '@codingame/monaco-vscode-d8236b3b-b91a-522d-89f4-94d70a546f6a-common/vscode/vs/workbench/browser/part';
|
|
14
|
+
import { Parts } from '@codingame/monaco-vscode-e571cbbb-526b-5d8b-92c5-a0437d2dabb3-common/vscode/vs/workbench/services/layout/browser/layoutService';
|
|
12
15
|
import { IWorkbenchLayoutService } from 'vscode/vscode/vs/workbench/services/layout/browser/layoutService.service';
|
|
13
16
|
import { Action } from 'vscode/vscode/vs/base/common/actions';
|
|
14
17
|
import { Link } from 'vscode/vscode/vs/platform/opener/browser/link';
|
|
@@ -17,7 +20,8 @@ import { IBannerService } from 'vscode/vscode/vs/workbench/services/banner/brows
|
|
|
17
20
|
import { MarkdownRenderer } from 'vscode/vscode/vs/editor/browser/widget/markdownRenderer/browser/markdownRenderer';
|
|
18
21
|
import { Action2, registerAction2 } from 'vscode/vscode/vs/platform/actions/common/actions';
|
|
19
22
|
import { Categories } from 'vscode/vscode/vs/platform/action/common/actionCommonCategories';
|
|
20
|
-
import { KeybindingsRegistry } from 'vscode/vscode/vs/platform/keybinding/common/keybindingsRegistry';
|
|
23
|
+
import { KeybindingsRegistry, KeybindingWeight } from 'vscode/vscode/vs/platform/keybinding/common/keybindingsRegistry';
|
|
24
|
+
import { KeyCode } from 'vscode/vscode/vs/base/common/keyCodes';
|
|
21
25
|
import { IContextKeyService } from 'vscode/vscode/vs/platform/contextkey/common/contextkey.service';
|
|
22
26
|
import { URI } from 'vscode/vscode/vs/base/common/uri';
|
|
23
27
|
import { widgetClose } from 'vscode/vscode/vs/platform/theme/common/iconRegistry';
|
|
@@ -32,13 +36,13 @@ let BannerPart = class BannerPart extends Part {
|
|
|
32
36
|
}
|
|
33
37
|
get onDidChange() { return this._onDidChangeSize.event; }
|
|
34
38
|
constructor(themeService, layoutService, storageService, contextKeyService, instantiationService) {
|
|
35
|
-
super(
|
|
39
|
+
super(Parts.BANNER_PART, { hasTitle: false }, themeService, storageService, layoutService);
|
|
36
40
|
this.contextKeyService = contextKeyService;
|
|
37
41
|
this.instantiationService = instantiationService;
|
|
38
42
|
this.height = 26;
|
|
39
43
|
this.minimumWidth = 0;
|
|
40
44
|
this.maximumWidth = Number.POSITIVE_INFINITY;
|
|
41
|
-
this._onDidChangeSize = this._register((
|
|
45
|
+
this._onDidChangeSize = this._register(( new Emitter()));
|
|
42
46
|
this.visible = false;
|
|
43
47
|
this.focusedActionIndex = -1;
|
|
44
48
|
this.markdownRenderer = this.instantiationService.createInstance(MarkdownRenderer, {});
|
|
@@ -97,7 +101,7 @@ let BannerPart = class BannerPart extends Part {
|
|
|
97
101
|
if (visible !== this.visible) {
|
|
98
102
|
this.visible = visible;
|
|
99
103
|
this.focusedActionIndex = -1;
|
|
100
|
-
this.layoutService.setPartHidden(!visible,
|
|
104
|
+
this.layoutService.setPartHidden(!visible, Parts.BANNER_PART);
|
|
101
105
|
this._onDidChangeSize.fire(undefined);
|
|
102
106
|
}
|
|
103
107
|
}
|
|
@@ -152,15 +156,15 @@ let BannerPart = class BannerPart extends Part {
|
|
|
152
156
|
}
|
|
153
157
|
}
|
|
154
158
|
const actionBarContainer = append(this.element, $('div.action-container'));
|
|
155
|
-
this.actionBar = this._register((
|
|
159
|
+
this.actionBar = this._register(( new ActionBar(actionBarContainer)));
|
|
156
160
|
const label = item.closeLabel ?? 'Close Banner';
|
|
157
|
-
const closeAction = this._register((
|
|
161
|
+
const closeAction = this._register(( new Action(
|
|
158
162
|
'banner.close',
|
|
159
163
|
label,
|
|
160
164
|
ThemeIcon.asClassName(widgetClose),
|
|
161
165
|
true,
|
|
162
166
|
() => this.close(item)
|
|
163
|
-
)))
|
|
167
|
+
)));
|
|
164
168
|
this.actionBar.push(closeAction, { icon: true, label: false });
|
|
165
169
|
this.actionBar.setFocusable(false);
|
|
166
170
|
this.setVisibility(true);
|
|
@@ -168,21 +172,21 @@ let BannerPart = class BannerPart extends Part {
|
|
|
168
172
|
}
|
|
169
173
|
toJSON() {
|
|
170
174
|
return {
|
|
171
|
-
type:
|
|
175
|
+
type: Parts.BANNER_PART
|
|
172
176
|
};
|
|
173
177
|
}
|
|
174
178
|
};
|
|
175
|
-
BannerPart = (
|
|
176
|
-
(
|
|
177
|
-
(
|
|
178
|
-
(
|
|
179
|
-
(
|
|
180
|
-
(
|
|
181
|
-
], BannerPart))
|
|
179
|
+
BannerPart = ( __decorate([
|
|
180
|
+
( __param(0, IThemeService)),
|
|
181
|
+
( __param(1, IWorkbenchLayoutService)),
|
|
182
|
+
( __param(2, IStorageService)),
|
|
183
|
+
( __param(3, IContextKeyService)),
|
|
184
|
+
( __param(4, IInstantiationService))
|
|
185
|
+
], BannerPart));
|
|
182
186
|
KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
183
187
|
id: 'workbench.banner.focusBanner',
|
|
184
|
-
weight:
|
|
185
|
-
primary:
|
|
188
|
+
weight: KeybindingWeight.WorkbenchContrib,
|
|
189
|
+
primary: KeyCode.Escape,
|
|
186
190
|
when: BannerFocused,
|
|
187
191
|
handler: (accessor) => {
|
|
188
192
|
const bannerService = accessor.get(IBannerService);
|
|
@@ -191,9 +195,9 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
|
191
195
|
});
|
|
192
196
|
KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
193
197
|
id: 'workbench.banner.focusNextAction',
|
|
194
|
-
weight:
|
|
195
|
-
primary:
|
|
196
|
-
secondary: [
|
|
198
|
+
weight: KeybindingWeight.WorkbenchContrib,
|
|
199
|
+
primary: KeyCode.RightArrow,
|
|
200
|
+
secondary: [KeyCode.DownArrow],
|
|
197
201
|
when: BannerFocused,
|
|
198
202
|
handler: (accessor) => {
|
|
199
203
|
const bannerService = accessor.get(IBannerService);
|
|
@@ -202,9 +206,9 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
|
202
206
|
});
|
|
203
207
|
KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
204
208
|
id: 'workbench.banner.focusPreviousAction',
|
|
205
|
-
weight:
|
|
206
|
-
primary:
|
|
207
|
-
secondary: [
|
|
209
|
+
weight: KeybindingWeight.WorkbenchContrib,
|
|
210
|
+
primary: KeyCode.LeftArrow,
|
|
211
|
+
secondary: [KeyCode.UpArrow],
|
|
208
212
|
when: BannerFocused,
|
|
209
213
|
handler: (accessor) => {
|
|
210
214
|
const bannerService = accessor.get(IBannerService);
|
|
@@ -213,7 +217,7 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
|
213
217
|
});
|
|
214
218
|
class FocusBannerAction extends Action2 {
|
|
215
219
|
static { this.ID = 'workbench.action.focusBanner'; }
|
|
216
|
-
static { this.LABEL = ( localize2(
|
|
220
|
+
static { this.LABEL = ( localize2(2713, "Focus Banner")); }
|
|
217
221
|
constructor() {
|
|
218
222
|
super({
|
|
219
223
|
id: FocusBannerAction.ID,
|
|
@@ -224,7 +228,7 @@ class FocusBannerAction extends Action2 {
|
|
|
224
228
|
}
|
|
225
229
|
async run(accessor) {
|
|
226
230
|
const layoutService = accessor.get(IWorkbenchLayoutService);
|
|
227
|
-
layoutService.focusPart(
|
|
231
|
+
layoutService.focusPart(Parts.BANNER_PART);
|
|
228
232
|
}
|
|
229
233
|
}
|
|
230
234
|
registerAction2(FocusBannerAction);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import n from 'vscode/external/rollup-plugin-styles/dist/runtime/inject-css
|
|
1
|
+
import n from 'vscode/external/rollup-plugin-styles/dist/runtime/inject-css';
|
|
2
2
|
|
|
3
3
|
var css = ".monaco-workbench .part.banner{background-color:var(--vscode-banner-background);box-sizing:border-box;color:var(--vscode-banner-foreground);cursor:default;display:flex;font-size:12px;height:100%;overflow:visible;width:100%}.monaco-workbench .part.banner .icon-container{align-items:center;display:flex;flex-shrink:0;padding:0 6px 0 10px}.monaco-workbench .part.banner .icon-container .codicon{color:var(--vscode-banner-iconForeground)}.monaco-workbench .part.banner .icon-container.custom-icon{background-image:url(\"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDI0IDEwMjQiPjxwYXRoIGQ9Ik0xMDI0IDEwMjRIMFYwaDEwMjR2MTAyNHoiIHN0eWxlPSJmaWxsOiNmNmY2ZjY7ZmlsbC1vcGFjaXR5OjAiIGZpbGw9Im5vbmUiLz48cGF0aCBkPSJNMTAyNCA4NS4zMzN2ODUzLjMzM0gwVjg1LjMzM2gxMDI0eiIgc3R5bGU9ImZpbGw6I2ZmZiIvPjxwYXRoIGQ9Ik0wIDg1LjMzM2gyOTguNjY3djg1My4zMzNIMFY4NS4zMzN6bTEwMjQgMHY4NTMuMzMzSDM4NFY4NS4zMzNoNjQwem0tNTU0LjY2NyAxNjBoMzQxLjMzM3YtNjRINDY5LjMzM3Y2NHptMzQxLjMzNCA1MzMuMzM0SDQ2OS4zMzN2NjRoMzQxLjMzM2wuMDAxLTY0em0xMjgtMTQ5LjMzNEg1OTcuMzMzdjY0aDM0MS4zMzNsLjAwMS02NHptMC0xNDkuMzMzSDU5Ny4zMzN2NjRoMzQxLjMzM2wuMDAxLTY0em0wLTE0OS4zMzNINTk3LjMzM3Y2NGgzNDEuMzMzbC4wMDEtNjR6IiBzdHlsZT0iZmlsbDojMTY3YWJmIi8+PC9zdmc+\");background-position:50%;background-repeat:no-repeat;background-size:16px;margin:0 6px 0 10px;padding:0;width:16px}.monaco-workbench .part.banner .message-container{line-height:26px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.monaco-workbench .part.banner .message-container a{color:var(--vscode-banner-foreground)}.monaco-workbench .part.banner .message-container p{margin-block-end:0;margin-block-start:0}.monaco-workbench .part.banner .message-actions-container{flex-grow:1;flex-shrink:0;line-height:26px}.monaco-workbench .part.banner .message-actions-container a{color:var(--vscode-banner-foreground);cursor:pointer;margin-left:12px;padding:3px;text-decoration:underline}.monaco-workbench .part.banner .message-container a{cursor:pointer;text-decoration:underline}.monaco-workbench .part.banner .action-container{padding:0 10px 0 6px}.monaco-workbench .part.banner .action-container .codicon{color:var(--vscode-banner-foreground)}";
|
|
4
4
|
n(css,{});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
|
|
3
|
+
import { LifecyclePhase } from 'vscode/vscode/vs/workbench/services/lifecycle/common/lifecycle';
|
|
2
4
|
import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
|
|
3
5
|
import { Extensions } from 'vscode/vscode/vs/workbench/common/contributions';
|
|
4
6
|
import { IBannerService } from 'vscode/vscode/vs/workbench/services/banner/browser/bannerService.service';
|
|
7
|
+
import { StorageScope, StorageTarget } from 'vscode/vscode/vs/platform/storage/common/storage';
|
|
5
8
|
import { IStorageService } from 'vscode/vscode/vs/platform/storage/common/storage.service';
|
|
6
9
|
import { IBrowserWorkbenchEnvironmentService } from 'vscode/vscode/vs/workbench/services/environment/browser/environmentService.service';
|
|
7
10
|
import { URI } from 'vscode/vscode/vs/base/common/uri';
|
|
@@ -16,7 +19,7 @@ let WelcomeBannerContribution = class WelcomeBannerContribution {
|
|
|
16
19
|
if (!welcomeBanner) {
|
|
17
20
|
return;
|
|
18
21
|
}
|
|
19
|
-
if (storageService.getBoolean(WelcomeBannerContribution_1.WELCOME_BANNER_DISMISSED_KEY,
|
|
22
|
+
if (storageService.getBoolean(WelcomeBannerContribution_1.WELCOME_BANNER_DISMISSED_KEY, StorageScope.PROFILE, false)) {
|
|
20
23
|
return;
|
|
21
24
|
}
|
|
22
25
|
let icon = undefined;
|
|
@@ -32,7 +35,7 @@ let WelcomeBannerContribution = class WelcomeBannerContribution {
|
|
|
32
35
|
icon,
|
|
33
36
|
actions: welcomeBanner.actions,
|
|
34
37
|
onClose: () => {
|
|
35
|
-
storageService.store(WelcomeBannerContribution_1.WELCOME_BANNER_DISMISSED_KEY, true,
|
|
38
|
+
storageService.store(WelcomeBannerContribution_1.WELCOME_BANNER_DISMISSED_KEY, true, StorageScope.PROFILE, StorageTarget.MACHINE);
|
|
36
39
|
}
|
|
37
40
|
});
|
|
38
41
|
}
|
|
@@ -43,4 +46,4 @@ WelcomeBannerContribution = WelcomeBannerContribution_1 = ( __decorate([
|
|
|
43
46
|
( __param(2, IBrowserWorkbenchEnvironmentService))
|
|
44
47
|
], WelcomeBannerContribution));
|
|
45
48
|
( Registry.as(Extensions.Workbench))
|
|
46
|
-
.registerWorkbenchContribution(WelcomeBannerContribution,
|
|
49
|
+
.registerWorkbenchContribution(WelcomeBannerContribution, LifecyclePhase.Restored);
|
package/viewBanner.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { SyncDescriptor } from 'vscode/vscode/vs/platform/instantiation/common/descriptors';
|
|
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.service';
|
|
4
|
-
import { registerServiceInitializePostParticipant } from 'vscode/lifecycle';
|
|
5
|
-
import './vscode/src/vs/workbench/contrib/welcomeBanner/browser/welcomeBanner.contribution.js';
|
|
6
|
-
|
|
7
|
-
function getServiceOverride() {
|
|
8
|
-
return {
|
|
9
|
-
[( IBannerService.toString())]: new SyncDescriptor(BannerPart, [], false)
|
|
10
|
-
};
|
|
11
|
-
}
|
|
12
|
-
registerServiceInitializePostParticipant(async (accessor) => {
|
|
13
|
-
accessor.get(IBannerService);
|
|
14
|
-
});
|
|
15
|
-
|
|
16
|
-
export { BannerPart, getServiceOverride as default };
|