fix: Remove tab completion caching of source (#4893)

This commit is contained in:
Daniel Sage
2023-10-13 05:43:16 -04:00
committed by GitHub
parent 653a14c76b
commit b85d666b32
3 changed files with 2 additions and 10 deletions
@@ -39,18 +39,11 @@ void TabCompletionModel::updateSourceFromQuery(const QString &query)
if (!deducedKind)
{
// unable to determine what kind of completion is occurring
this->sourceKind_ = std::nullopt;
this->source_ = nullptr;
return;
}
if (this->sourceKind_ == *deducedKind)
{
// Source already properly configured
return;
}
this->sourceKind_ = *deducedKind;
// Build source for new query
this->source_ = this->buildSource(*deducedKind);
}