Revert "[clangd] FileDistance: temporarily disable in CodeComplete, it's behaving badly"

The bad behavior seems to have been fixed by r336242 after all.
I thought it was persisting, but that was a different bug fixed by D48940

llvm-svn: 336320
This commit is contained in:
Sam McCall 2018-07-05 08:26:53 +00:00
parent 27be58b307
commit f84dd024de
1 changed files with 1 additions and 2 deletions

View File

@ -1142,8 +1142,7 @@ private:
SymbolQualitySignals Quality;
SymbolRelevanceSignals Relevance;
Relevance.Query = SymbolRelevanceSignals::CodeComplete;
// FIXME: re-enable this after working out why it eats memory.
// Relevance.FileProximityMatch = FileProximity.getPointer();
Relevance.FileProximityMatch = FileProximity.getPointer();
auto &First = Bundle.front();
if (auto FuzzyScore = fuzzyScore(First))
Relevance.NameMatch = *FuzzyScore;