Skip to content

Commit 2da0d29

Browse files
henrymercerCopilot
andcommitted
Omit the feature flag name from the per-language bundle debug log
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
1 parent 87a1923 commit 2da0d29

3 files changed

Lines changed: 3 additions & 5 deletions

File tree

‎lib/entry-points.js‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎src/per-language-bundles.test.ts‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,9 +162,7 @@ test("getPerLanguageBundleLanguage explains a disabled feature before checking e
162162
t.is(language, undefined);
163163
t.deepEqual(
164164
messages.map((message) => message.message),
165-
[
166-
"Not using a per-language CodeQL bundle since the per_language_bundles_v2 feature is disabled.",
167-
],
165+
["Not using a per-language CodeQL bundle since the feature is disabled."],
168166
);
169167
});
170168

‎src/per-language-bundles.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ export async function getPerLanguageBundleLanguage(
152152
};
153153

154154
if (!(await features.getValue(Feature.PerLanguageBundles))) {
155-
return explain(`the ${Feature.PerLanguageBundles} feature is disabled`);
155+
return explain("the feature is disabled");
156156
}
157157

158158
// This reason applies whichever languages were requested, so check it first to avoid suggesting

0 commit comments

Comments
 (0)