[clangd] Propagate CollectMainFileRefs to BackgroundIndex

This appears to have been an omission in D83536.

Differential Revision: https://reviews.llvm.org/D89284
This commit is contained in:
Nathan Ridge 2020-10-12 20:41:13 -04:00
parent 647fb6b374
commit cb3c13fab6
1 changed files with 1 additions and 0 deletions

View File

@ -219,6 +219,7 @@ ClangdServer::ClangdServer(const GlobalCompilationDatabase &CDB,
BGOpts.ContextProvider = [this](PathRef P) {
return createProcessingContext(P);
};
BGOpts.CollectMainFileRefs = Opts.CollectMainFileRefs;
BackgroundIdx = std::make_unique<BackgroundIndex>(
TFS, CDB,
BackgroundIndexStorage::createDiskBackedStorageFactory(