@@ -59,6 +59,7 @@ import { basename, relativePath } from '../../../../../base/common/resources.js'
59
59
import { IFilesConfigurationService } from '../../../../services/filesConfiguration/common/filesConfigurationService.js' ;
60
60
import { getExcludes , ISearchComplete , ISearchConfiguration , ISearchService , QueryType } from '../../../../services/search/common/search.js' ;
61
61
import { CancellationToken } from '../../../../../base/common/cancellation.js' ;
62
+ import { Schemas } from '../../../../../base/common/network.js' ;
62
63
63
64
64
65
function hasExpandedRootChild ( tree : WorkbenchCompressibleAsyncDataTree < ExplorerItem | ExplorerItem [ ] , ExplorerItem , FuzzyScore > , treeInput : ExplorerItem [ ] ) : boolean {
@@ -555,6 +556,8 @@ export class ExplorerView extends ViewPane implements IExplorerView {
555
556
556
557
const getFileNestingSettings = ( item ?: ExplorerItem ) => this . configurationService . getValue < IFilesConfiguration > ( { resource : item ?. root . resource } ) . explorer . fileNesting ;
557
558
559
+ const rootsSupportFindProvider = this . explorerService . roots . every ( root => root . resource . scheme === Schemas . file || root . resource . scheme === Schemas . vscodeRemote ) ;
560
+
558
561
this . tree = < WorkbenchCompressibleAsyncDataTree < ExplorerItem | ExplorerItem [ ] , ExplorerItem , FuzzyScore > > this . instantiationService . createInstance ( WorkbenchCompressibleAsyncDataTree , 'FileExplorer' , container , new ExplorerDelegate ( ) , new ExplorerCompressionDelegate ( ) , [ this . renderer ] ,
559
562
this . instantiationService . createInstance ( ExplorerDataSource , this . filter ) , {
560
563
compressionEnabled : isCompressionEnabled ( ) ,
@@ -602,7 +605,7 @@ export class ExplorerView extends ViewPane implements IExplorerView {
602
605
} ,
603
606
paddingBottom : ExplorerDelegate . ITEM_HEIGHT ,
604
607
overrideStyles : this . getLocationBasedColors ( ) . listOverrideStyles ,
605
- findResultsProvider : this . instantiationService . createInstance ( ExplorerFindProvider ) ,
608
+ findResultsProvider : rootsSupportFindProvider ? this . instantiationService . createInstance ( ExplorerFindProvider ) : undefined ,
606
609
} ) ;
607
610
this . _register ( this . tree ) ;
608
611
this . _register ( this . themeService . onDidColorThemeChange ( ( ) => this . tree . rerender ( ) ) ) ;
0 commit comments