Skip to content

Commit

Permalink
clean up child instantiation services #212879
Browse files Browse the repository at this point in the history
  • Loading branch information
andreamah committed Aug 1, 2024
1 parent deecca1 commit b116f1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vs/workbench/contrib/search/browser/searchResultsView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ export class FileMatchRenderer extends Disposable implements ICompressibleTreeRe
SearchContext.FileFocusKey.bindTo(contextKeyServiceMain).set(true);
SearchContext.FolderFocusKey.bindTo(contextKeyServiceMain).set(false);

const instantiationService = this.instantiationService.createChild(new ServiceCollection([IContextKeyService, contextKeyServiceMain]));
const instantiationService = this._register(this.instantiationService.createChild(new ServiceCollection([IContextKeyService, contextKeyServiceMain])));
const actions = disposables.add(instantiationService.createInstance(MenuWorkbenchToolBar, actionBarContainer, MenuId.SearchActionMenu, {
menuOptions: {
shouldForwardArgs: true
Expand Down Expand Up @@ -327,7 +327,7 @@ export class MatchRenderer extends Disposable implements ICompressibleTreeRender
SearchContext.FileFocusKey.bindTo(contextKeyServiceMain).set(false);
SearchContext.FolderFocusKey.bindTo(contextKeyServiceMain).set(false);

const instantiationService = this.instantiationService.createChild(new ServiceCollection([IContextKeyService, contextKeyServiceMain]));
const instantiationService = this._register(this.instantiationService.createChild(new ServiceCollection([IContextKeyService, contextKeyServiceMain])));
const actions = disposables.add(instantiationService.createInstance(MenuWorkbenchToolBar, actionBarContainer, MenuId.SearchActionMenu, {
menuOptions: {
shouldForwardArgs: true
Expand Down

0 comments on commit b116f1e

Please sign in to comment.