Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion view/sharedcache/core/SharedCacheView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -855,9 +855,10 @@ bool SharedCacheView::InitController()
{
// After this we should have all the mappings available as well.
auto startTime = std::chrono::high_resolution_clock::now();
sharedCacheBuilder.AddDirectory(primaryFileDir);
if (primaryProjectFile)
sharedCacheBuilder.AddProjectFolder(primaryProjectFile->GetFolder());
else
sharedCacheBuilder.AddDirectory(primaryFileDir);
auto totalEntries = sharedCacheBuilder.GetCache().GetEntries().size();
auto endTime = std::chrono::high_resolution_clock::now();
std::chrono::duration<double> elapsed = endTime - startTime;
Expand Down