Merge pull request #5667 from NixOS/5661-dont-complete-flakes-without-xp-feature

Don’t try to complete flakes is the feature isn’t enabled
This commit is contained in:
Eelco Dolstra
2021-11-29 10:51:41 +01:00
committed by GitHub
+3
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(".");