Don’t try to complete flakes is the feature isn’t enabled

Fix #5661
This commit is contained in:
regnat 2021-11-26 16:56:25 +01:00
parent 55275fcc59
commit 3a0277305a

View file

@ -291,6 +291,9 @@ void completeFlakeRefWithFragment(
void completeFlakeRef(ref<Store> store, std::string_view prefix)
{
if (!settings.isExperimentalFeatureEnabled(Xp::Flakes))
return;
if (prefix == "")
completions->add(".");