Skip to content

Commit 06ee9fe

Browse files
WeiN76LQhemesare
authored andcommitted
Fix issue #7247
See #7247 (comment) for details.
1 parent 866f242 commit 06ee9fe

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

view/sharedcache/core/SharedCacheView.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -855,9 +855,10 @@ bool SharedCacheView::InitController()
855855
{
856856
// After this we should have all the mappings available as well.
857857
auto startTime = std::chrono::high_resolution_clock::now();
858-
sharedCacheBuilder.AddDirectory(primaryFileDir);
859858
if (primaryProjectFile)
860859
sharedCacheBuilder.AddProjectFolder(primaryProjectFile->GetFolder());
860+
else
861+
sharedCacheBuilder.AddDirectory(primaryFileDir);
861862
auto totalEntries = sharedCacheBuilder.GetCache().GetEntries().size();
862863
auto endTime = std::chrono::high_resolution_clock::now();
863864
std::chrono::duration<double> elapsed = endTime - startTime;

0 commit comments

Comments
 (0)