@codingame/monaco-vscode-view-common-service-override 24.1.0 → 24.2.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-common-service-override",
|
|
3
|
-
"version": "24.
|
|
3
|
+
"version": "24.2.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - view-common service-override",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-api": "24.
|
|
19
|
-
"@codingame/monaco-vscode-bulk-edit-service-override": "24.
|
|
18
|
+
"@codingame/monaco-vscode-api": "24.2.0",
|
|
19
|
+
"@codingame/monaco-vscode-bulk-edit-service-override": "24.2.0"
|
|
20
20
|
},
|
|
21
21
|
"main": "index.js",
|
|
22
22
|
"module": "index.js",
|
|
@@ -47,6 +47,8 @@ export declare class ViewContainerModel extends Disposable implements IViewConta
|
|
|
47
47
|
from: IViewDescriptorRef;
|
|
48
48
|
to: IViewDescriptorRef;
|
|
49
49
|
}>;
|
|
50
|
+
private _onDidChangeEnablement;
|
|
51
|
+
readonly onDidChangeEnablement: Event<void>;
|
|
50
52
|
private readonly logger;
|
|
51
53
|
constructor(viewContainer: ViewContainer, instantiationService: IInstantiationService, contextKeyService: IContextKeyService, loggerService: ILoggerService);
|
|
52
54
|
private updateContainerInfo;
|
|
@@ -247,6 +247,15 @@ let ViewContainerModel = class ViewContainerModel extends Disposable {
|
|
|
247
247
|
this.onDidRemoveVisibleViewDescriptors = this._onDidRemoveVisibleViewDescriptors.event;
|
|
248
248
|
this._onDidMoveVisibleViewDescriptors = this._register(( new Emitter()));
|
|
249
249
|
this.onDidMoveVisibleViewDescriptors = this._onDidMoveVisibleViewDescriptors.event;
|
|
250
|
+
this._onDidChangeEnablement = this._register(( new Emitter()));
|
|
251
|
+
this.onDidChangeEnablement = this._onDidChangeEnablement.event;
|
|
252
|
+
if (viewContainer.when) {
|
|
253
|
+
const whenContextKeys = ( new CounterSet());
|
|
254
|
+
for (const key of ( viewContainer.when.keys())) {
|
|
255
|
+
whenContextKeys.add(key);
|
|
256
|
+
}
|
|
257
|
+
this._register(Event.filter(contextKeyService.onDidChangeContext, e => e.affectsSome(whenContextKeys))(() => this._onDidChangeEnablement.fire()));
|
|
258
|
+
}
|
|
250
259
|
this.logger = ( new Lazy(
|
|
251
260
|
() => loggerService.createLogger(VIEWS_LOG_ID, { name: VIEWS_LOG_NAME, group: windowLogGroup })
|
|
252
261
|
));
|