mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 13:00:58 +00:00
fix this reference in instantiation service (#213311)
This commit is contained in:
parent
027fce3efd
commit
3eb20557bd
|
@ -73,9 +73,10 @@ export class InstantiationService implements IInstantiationService {
|
|||
createChild(services: ServiceCollection, store?: DisposableStore): IInstantiationService {
|
||||
this._throwIfDisposed();
|
||||
|
||||
const that = this;
|
||||
const result = new class extends InstantiationService {
|
||||
override dispose(): void {
|
||||
this._children.delete(result);
|
||||
that._children.delete(result);
|
||||
super.dispose();
|
||||
}
|
||||
}(services, this._strict, this, this._enableTracing);
|
||||
|
|
Loading…
Reference in a new issue