diff --git a/src/vs/platform/widget/browser/contextScopedHistoryWidget.ts b/src/vs/platform/widget/browser/contextScopedHistoryWidget.ts index bfcd8826be11b9ee6447b9b92d685da2d2b2c291..c98eea4b96290e520e2dc512baabfbd672c294ee 100644 --- a/src/vs/platform/widget/browser/contextScopedHistoryWidget.ts +++ b/src/vs/platform/widget/browser/contextScopedHistoryWidget.ts @@ -35,8 +35,7 @@ export class ContextScopedHistoryInputBox extends HistoryInputBox { @IContextKeyService contextKeyService: IContextKeyService ) { super(container, contextViewProvider, options); - const { scopedContextKeyService } = createAndBindHistoryNavigationWidgetScopedContextKeyService(contextKeyService, { target: this.element, historyNavigator: this }); - this._register(scopedContextKeyService); + this._register(createAndBindHistoryNavigationWidgetScopedContextKeyService(contextKeyService, { target: this.element, historyNavigator: this }).scopedContextKeyService); } } @@ -47,8 +46,7 @@ export class ContextScopedFindInput extends FindInput { @IContextKeyService contextKeyService: IContextKeyService ) { super(container, contextViewProvider, options); - const { scopedContextKeyService } = createAndBindHistoryNavigationWidgetScopedContextKeyService(contextKeyService, { target: this.inputBox.element, historyNavigator: this.inputBox }); - this._register(scopedContextKeyService); + this._register(createAndBindHistoryNavigationWidgetScopedContextKeyService(contextKeyService, { target: this.inputBox.element, historyNavigator: this.inputBox }).scopedContextKeyService); } }