Explain what a reason to use the combined bundle means where it's checked

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
Henry Mercer
2026-10-01 17:46:49 +01:00
parent 725421c272
commit 1bb99cb5c7

View File

@@ -160,8 +160,9 @@ export async function getPerLanguageBundleLanguage(
return explain("the feature is disabled");
}
// This reason applies whichever languages were requested, so check it first to avoid suggesting
// that requesting a single language would be enough.
// A defined reason means the CodeQL CLI may need packs for other languages, for example because
// of the configured queries. That applies whichever languages were requested, so check it first
// to avoid suggesting that requesting a single language would be enough.
if (otherLanguagePacksReason !== undefined) {
return explain(otherLanguagePacksReason);
}