Omit the feature flag name from the per-language bundle debug log

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
Henry Mercer
2026-10-01 11:20:10 +01:00
parent 87a1923fea
commit 2da0d298e0
3 changed files with 3 additions and 5 deletions

2
lib/entry-points.js generated
View File

@@ -151642,7 +151642,7 @@ async function getPerLanguageBundleLanguage({
return void 0;
};
if (!await features.getValue("per_language_bundles_v2" /* PerLanguageBundles */)) {
return explain(`the ${"per_language_bundles_v2" /* PerLanguageBundles */} feature is disabled`);
return explain("the feature is disabled");
}
if (otherLanguagePacksReason !== void 0) {
return explain(otherLanguagePacksReason);

View File

@@ -162,9 +162,7 @@ test("getPerLanguageBundleLanguage explains a disabled feature before checking e
t.is(language, undefined);
t.deepEqual(
messages.map((message) => message.message),
[
"Not using a per-language CodeQL bundle since the per_language_bundles_v2 feature is disabled.",
],
["Not using a per-language CodeQL bundle since the feature is disabled."],
);
});

View File

@@ -152,7 +152,7 @@ export async function getPerLanguageBundleLanguage(
};
if (!(await features.getValue(Feature.PerLanguageBundles))) {
return explain(`the ${Feature.PerLanguageBundles} feature is disabled`);
return explain("the feature is disabled");
}
// This reason applies whichever languages were requested, so check it first to avoid suggesting