Skip to content

Commit

Permalink
Debt - dispose child instantiation service (#213471)
Browse files Browse the repository at this point in the history
  • Loading branch information
lszomoru authored May 25, 2024
1 parent d8c3723 commit 91b99e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/vs/workbench/contrib/scm/browser/menus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ export class SCMRepositoryMenus implements ISCMRepositoryMenus, IDisposable {
]);

const serviceCollection = new ServiceCollection([IContextKeyService, this.contextKeyService]);
instantiationService = instantiationService.createChild(serviceCollection);
instantiationService = instantiationService.createChild(serviceCollection, this.disposables);
this.titleMenu = instantiationService.createInstance(SCMTitleMenu);
this.disposables.add(this.titleMenu);

Expand Down
2 changes: 1 addition & 1 deletion src/vs/workbench/contrib/scm/browser/scmViewPane.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2464,7 +2464,7 @@ class SCMInputWidget {
};

const services = new ServiceCollection([IContextKeyService, this.contextKeyService]);
const instantiationService2 = instantiationService.createChild(services);
const instantiationService2 = instantiationService.createChild(services, this.disposables);
this.inputEditor = instantiationService2.createInstance(CodeEditorWidget, this.editorContainer, editorConstructionOptions, codeEditorWidgetOptions);
this.disposables.add(this.inputEditor);

Expand Down

0 comments on commit 91b99e1

Please sign in to comment.