Skip to content

Commit

Permalink
Fix error when search is in panel
Browse files Browse the repository at this point in the history
  • Loading branch information
roblourens committed Jul 7, 2019
1 parent 8a50473 commit d50852d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vs/workbench/contrib/search/browser/searchView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ export class SearchView extends ViewletPanel {
this.matchFocused = Constants.MatchFocusKey.bindTo(this.contextKeyService);
this.hasSearchResultsKey = Constants.HasSearchResults.bindTo(this.contextKeyService);

this.viewModel = this._register(this.searchWorkbenchService.searchModel);
this.queryBuilder = this.instantiationService.createInstance(QueryBuilder);
this.memento = new Memento(this.id, storageService);
this.viewletState = this.memento.getMemento(StorageScope.WORKSPACE);
Expand Down Expand Up @@ -204,7 +205,6 @@ export class SearchView extends ViewletPanel {
}

renderBody(parent: HTMLElement): void {
this.viewModel = this._register(this.searchWorkbenchService.searchModel);
this.container = dom.append(parent, dom.$('.search-view'));

this.searchWidgetsContainerElement = dom.append(this.container, $('.search-widgets-container'));
Expand Down

0 comments on commit d50852d

Please sign in to comment.