@codingame/monaco-vscode-view-banner-service-override 2.1.0 → 2.1.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-view-banner-service-override",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.2",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "CodinGame",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"module": "index.js",
|
|
19
19
|
"types": "index.d.ts",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"vscode": "npm:@codingame/monaco-vscode-api@2.1.
|
|
21
|
+
"vscode": "npm:@codingame/monaco-vscode-api@2.1.2",
|
|
22
22
|
"vscode-marked": "npm:marked@=3.0.2"
|
|
23
23
|
}
|
|
24
24
|
}
|
|
@@ -150,17 +150,19 @@ 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
|
-
|
|
153
|
+
if (!item.disableCloseAction) {
|
|
154
|
+
const actionBarContainer = append(this.element, $('div.action-container'));
|
|
155
|
+
this.actionBar = this._register(( new ActionBar(actionBarContainer)));
|
|
156
|
+
const closeAction = this._register(( new Action(
|
|
157
|
+
'banner.close',
|
|
158
|
+
'Close Banner',
|
|
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);
|
|
165
|
+
}
|
|
164
166
|
this.setVisibility(true);
|
|
165
167
|
this.item = item;
|
|
166
168
|
}
|