Skip to content

Commit

Permalink
fix this reference in instantiation service (#213311)
Browse files Browse the repository at this point in the history
  • Loading branch information
joaomoreno authored May 23, 2024
1 parent 027fce3 commit 3eb2055
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/vs/platform/instantiation/common/instantiationService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 3eb2055

Please sign in to comment.