Search provider - give different cacheKeys for different folders

This commit is contained in:
Rob Lourens
2018-07-03 14:46:41 -07:00
parent 7021188827
commit 21082bf9ef
2 changed files with 29 additions and 20 deletions

View File

@@ -621,7 +621,10 @@ class FileSearchEngine {
.then(() => {
this.activeCancellationTokens.add(cancellation);
return this.provider.provideFileSearchResults(
{ cacheKey: this.config.cacheKey, pattern: this.config.filePattern || '' },
{
pattern: this.config.filePattern || '',
cacheKey: this.config.cacheKey + '_' + fq.folder.fsPath
},
options,
{ report: onProviderResult },
cancellation.token);