@codingame/monaco-vscode-view-banner-service-override 3.2.3 → 4.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-view-banner-service-override",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "CodinGame",
|
|
@@ -18,6 +18,6 @@
|
|
|
18
18
|
"module": "index.js",
|
|
19
19
|
"types": "index.d.ts",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"vscode": "npm:@codingame/monaco-vscode-api@
|
|
21
|
+
"vscode": "npm:@codingame/monaco-vscode-api@4.0.0"
|
|
22
22
|
}
|
|
23
23
|
}
|
|
@@ -50,7 +50,7 @@ let BannerPart = class BannerPart extends Part {
|
|
|
50
50
|
this.focusActionLink();
|
|
51
51
|
}
|
|
52
52
|
}));
|
|
53
|
-
const scopedContextKeyService = this.contextKeyService.createScoped(this.element);
|
|
53
|
+
const scopedContextKeyService = this._register(this.contextKeyService.createScoped(this.element));
|
|
54
54
|
BannerFocused.bindTo(scopedContextKeyService).set(true);
|
|
55
55
|
return this.element;
|
|
56
56
|
}
|
|
@@ -150,19 +150,18 @@ let BannerPart = class BannerPart extends Part {
|
|
|
150
150
|
this._register(this.instantiationService.createInstance(Link, this.messageActionsContainer, { ...action, tabIndex: -1 }, {}));
|
|
151
151
|
}
|
|
152
152
|
}
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
}
|
|
153
|
+
const actionBarContainer = append(this.element, $('div.action-container'));
|
|
154
|
+
this.actionBar = this._register(( new ActionBar(actionBarContainer)));
|
|
155
|
+
const label = item.closeLabel ?? 'Close Banner';
|
|
156
|
+
const closeAction = this._register(( new Action(
|
|
157
|
+
'banner.close',
|
|
158
|
+
label,
|
|
159
|
+
ThemeIcon.asClassName(widgetClose),
|
|
160
|
+
true,
|
|
161
|
+
() => this.close(item)
|
|
162
|
+
)));
|
|
163
|
+
this.actionBar.push(closeAction, { icon: true, label: false });
|
|
164
|
+
this.actionBar.setFocusable(false);
|
|
166
165
|
this.setVisibility(true);
|
|
167
166
|
this.item = item;
|
|
168
167
|
}
|