File tree Expand file tree Collapse file tree
src/vs/workbench/contrib/search/browser Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -169,6 +169,7 @@ export class SearchView extends ViewletPanel {
169169 this . matchFocused = Constants . MatchFocusKey . bindTo ( this . contextKeyService ) ;
170170 this . hasSearchResultsKey = Constants . HasSearchResults . bindTo ( this . contextKeyService ) ;
171171
172+ this . viewModel = this . _register ( this . searchWorkbenchService . searchModel ) ;
172173 this . queryBuilder = this . instantiationService . createInstance ( QueryBuilder ) ;
173174 this . memento = new Memento ( this . id , storageService ) ;
174175 this . viewletState = this . memento . getMemento ( StorageScope . WORKSPACE ) ;
@@ -204,7 +205,6 @@ export class SearchView extends ViewletPanel {
204205 }
205206
206207 renderBody ( parent : HTMLElement ) : void {
207- this . viewModel = this . _register ( this . searchWorkbenchService . searchModel ) ;
208208 this . container = dom . append ( parent , dom . $ ( '.search-view' ) ) ;
209209
210210 this . searchWidgetsContainerElement = dom . append ( this . container , $ ( '.search-widgets-container' ) ) ;
You can’t perform that action at this time.
0 commit comments