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
commit 3d36f48acb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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(".");