File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
src/vs/workbench/contrib/search/browser Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -349,8 +349,7 @@ export class SearchView extends ViewPane {
349
349
} ) ) ;
350
350
351
351
// folder includes list
352
- const folderIncludesList = dom . append ( this . queryDetails ,
353
- $ ( '.file-types.includes' ) ) ;
352
+ const folderIncludesList = dom . append ( this . queryDetails , $ ( '.file-types.includes' ) ) ;
354
353
const filesToIncludeTitle = nls . localize ( 'searchScope.includes' , "files to include" ) ;
355
354
dom . append ( folderIncludesList , $ ( 'h4' , undefined , filesToIncludeTitle ) ) ;
356
355
@@ -1996,6 +1995,11 @@ export class SearchView extends ViewPane {
1996
1995
}
1997
1996
1998
1997
public override saveState ( ) : void {
1998
+ // This can be called before renderBody() method gets called for the first time
1999
+ // if we move the searchView inside another viewPaneContainer
2000
+ if ( ! this . searchWidget ) {
2001
+ return ;
2002
+ }
1999
2003
2000
2004
const patternExcludes = this . inputPatternExcludes ?. getValue ( ) . trim ( ) ?? '' ;
2001
2005
const patternIncludes = this . inputPatternIncludes ?. getValue ( ) . trim ( ) ?? '' ;
You can’t perform that action at this time.
0 commit comments