Skip to content

Commit faed865

Browse files
author
Jackson Kearl
committed
1 parent 022483a commit faed865

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/vs/workbench/contrib/searchEditor/browser/searchEditor.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ import { IConfigurationService } from 'vs/platform/configuration/common/configur
2727
import { IContextKey, IContextKeyService } from 'vs/platform/contextkey/common/contextkey';
2828
import { IContextViewService } from 'vs/platform/contextview/browser/contextView';
2929
import { IInstantiationService } from 'vs/platform/instantiation/common/instantiation';
30-
import { ServiceCollection } from 'vs/platform/instantiation/common/serviceCollection';
3130
import { ILabelService } from 'vs/platform/label/common/label';
3231
import { IEditorProgressService, LongRunningOperation } from 'vs/platform/progress/common/progress';
3332
import { IStorageService } from 'vs/platform/storage/common/storage';
@@ -109,10 +108,7 @@ export class SearchEditor extends BaseTextEditor {
109108
super(SearchEditor.ID, telemetryService, instantiationService, storageService, textResourceService, themeService, editorService, editorGroupService);
110109
this.container = DOM.$('.search-editor');
111110

112-
113-
const scopedContextKeyService = contextKeyService.createScoped(this.container);
114-
this.instantiationService = instantiationService.createChild(new ServiceCollection([IContextKeyService, scopedContextKeyService]));
115-
111+
const scopedContextKeyService = assertIsDefined(this.scopedContextKeyService);
116112
this.inSearchEditorContextKey = InSearchEditor.bindTo(scopedContextKeyService);
117113
this.inSearchEditorContextKey.set(true);
118114
this.inputFocusContextKey = InputBoxFocusedKey.bindTo(scopedContextKeyService);

0 commit comments

Comments
 (0)