提交 a1d8f25b 编写于 作者: J Johannes Rieken

insta - actually enable delayed instantiation

上级 80db5680
...@@ -186,7 +186,7 @@ export class InstantiationService implements IInstantiationService { ...@@ -186,7 +186,7 @@ export class InstantiationService implements IInstantiationService {
for (let { data } of roots) { for (let { data } of roots) {
// create instance and overwrite the service collections // create instance and overwrite the service collections
const instance = this._createServiceInstanceWithOwner(data.id, data.desc.ctor, data.desc.staticArguments, false, data._trace); const instance = this._createServiceInstanceWithOwner(data.id, data.desc.ctor, data.desc.staticArguments, data.desc.supportsDelayedInstantiation, data._trace);
this._setServiceInstance(data.id, instance); this._setServiceInstance(data.id, instance);
graph.removeNode(data); graph.removeNode(data);
} }
...@@ -205,7 +205,7 @@ export class InstantiationService implements IInstantiationService { ...@@ -205,7 +205,7 @@ export class InstantiationService implements IInstantiationService {
} }
} }
protected _createServiceInstance<T>(ctor: any, args: any[] = [], supportsDelayedInstantiation: boolean, _trace: Trace): T { protected _createServiceInstance<T>(ctor: any, args: any[] = [], _supportsDelayedInstantiation: boolean, _trace: Trace): T {
return this._createInstance(ctor, args, _trace); return this._createInstance(ctor, args, _trace);
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册