Fix #59922 - changes needed to support a cache in a FileSearchProvider

This commit is contained in:
Rob Lourens
2018-12-03 16:19:26 -08:00
parent 682d684944
commit 6f9b2d7593
5 changed files with 42 additions and 11 deletions

View File

@@ -552,9 +552,9 @@ export class FileIndexSearchManager {
});
}
public clearCache(cacheKey: string): Promise<void> {
public clearCache(cacheKey: string): void {
if (!this.folderCacheKeys.has(cacheKey)) {
return Promise.resolve(undefined);
return undefined;
}
const expandedKeys = this.folderCacheKeys.get(cacheKey);
@@ -562,7 +562,7 @@ export class FileIndexSearchManager {
this.folderCacheKeys.delete(cacheKey);
return Promise.resolve(undefined);
return undefined;
}
private preventCancellation<C>(promise: CancelablePromise<C>): CancelablePromise<C> {