@codingame/monaco-vscode-view-banner-service-override 38.0.7 → 39.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/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { SyncDescriptor } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/descriptors';
|
|
3
3
|
import { BannerPart } from './vscode/src/vs/workbench/browser/parts/banner/bannerPart.js';
|
|
4
4
|
import { IBannerService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/banner/browser/bannerService.service';
|
|
5
|
-
import {
|
|
5
|
+
import { registerServiceInitializeParticipant } from '@codingame/monaco-vscode-api/lifecycle';
|
|
6
6
|
import './vscode/src/vs/workbench/contrib/welcomeBanner/browser/welcomeBanner.contribution.js';
|
|
7
7
|
|
|
8
8
|
function getServiceOverride() {
|
|
@@ -10,7 +10,7 @@ function getServiceOverride() {
|
|
|
10
10
|
[IBannerService.toString()]: new SyncDescriptor(BannerPart, [], false)
|
|
11
11
|
};
|
|
12
12
|
}
|
|
13
|
-
|
|
13
|
+
registerServiceInitializeParticipant(async (accessor) => {
|
|
14
14
|
accessor.get(IBannerService);
|
|
15
15
|
});
|
|
16
16
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-view-banner-service-override",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "39.0.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - view-banner service-override",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-api": "
|
|
18
|
+
"@codingame/monaco-vscode-api": "39.0.0"
|
|
19
19
|
},
|
|
20
20
|
"main": "index.js",
|
|
21
21
|
"module": "index.js",
|
|
@@ -196,7 +196,7 @@ let BannerPart = class BannerPart extends Part {
|
|
|
196
196
|
}
|
|
197
197
|
const actionBarContainer = append(this.element, $("div.action-container"));
|
|
198
198
|
this.actionBar = this.itemDisposables.add(( new ActionBar(actionBarContainer)));
|
|
199
|
-
const label = item.closeLabel ?? ( localize(
|
|
199
|
+
const label = item.closeLabel ?? ( localize(8410, "Close Banner"));
|
|
200
200
|
const activeItem = item;
|
|
201
201
|
const closeAction = this.itemDisposables.add(( new Action(
|
|
202
202
|
"banner.close",
|
|
@@ -259,7 +259,7 @@ class FocusBannerAction extends Action2 {
|
|
|
259
259
|
this.ID = "workbench.action.focusBanner";
|
|
260
260
|
}
|
|
261
261
|
static {
|
|
262
|
-
this.LABEL = ( localize2(
|
|
262
|
+
this.LABEL = ( localize2(8411, "Focus Banner"));
|
|
263
263
|
}
|
|
264
264
|
constructor() {
|
|
265
265
|
super({
|