Skip to content

Commit

Permalink
Register scoped instantiation service
Browse files Browse the repository at this point in the history
Part of #212879
  • Loading branch information
Tyriar committed Jul 12, 2024
1 parent 9702b85 commit 478a5c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vs/workbench/contrib/terminal/browser/terminalInstance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -423,9 +423,9 @@ export class TerminalInstance extends Disposable implements ITerminalInstance {

const scopedContextKeyService = this._register(_contextKeyService.createScoped(this._wrapperElement));
this._scopedContextKeyService = scopedContextKeyService;
this._scopedInstantiationService = instantiationService.createChild(new ServiceCollection(
this._scopedInstantiationService = this._register(instantiationService.createChild(new ServiceCollection(
[IContextKeyService, scopedContextKeyService]
));
)));

this._terminalFocusContextKey = TerminalContextKeys.focus.bindTo(scopedContextKeyService);
this._terminalHasFixedWidth = TerminalContextKeys.terminalHasFixedWidth.bindTo(scopedContextKeyService);
Expand Down

0 comments on commit 478a5c2

Please sign in to comment.