Search provider - remove absolute path checks from extHostSearch to match fileSearch.ts

This commit is contained in:
Rob Lourens
2018-07-03 16:03:43 -07:00
parent fdf27274f0
commit 824a3e9298
2 changed files with 26 additions and 68 deletions

View File

@@ -113,10 +113,6 @@ export class CachedSearchProvider {
}
private getResultsFromCache(cache: Cache, searchValue: string, onResult: (results: IInternalFileMatch) => void): Promise<[IInternalFileMatch[], CacheStats]> {
if (path.isAbsolute(searchValue)) {
return null; // bypass cache if user looks up an absolute path where matching goes directly on disk
}
// Find cache entries by prefix of search value
const hasPathSep = searchValue.indexOf(path.sep) >= 0;
let cached: CacheEntry<IInternalFileMatch>;