Include experimental languages

This commit is contained in:
Henry Mercer
2026-04-14 17:38:26 +01:00
parent 90d7616015
commit f8b62132ab
+6
View File
@@ -17,6 +17,8 @@ import * as path from "node:path";
import * as yaml from "yaml";
import { EnvVar } from "../src/environment";
import { BUILTIN_LANGUAGES_FILE } from "./config";
/** Resolve all known language extractor directories. */
@@ -24,6 +26,10 @@ function resolveLanguages(codeqlPath: string): Record<string, string[]> {
return JSON.parse(
execFileSync(codeqlPath, ["resolve", "languages", "--format=json"], {
encoding: "utf8",
env: {
...process.env,
[EnvVar.EXPERIMENTAL_FEATURES]: "true", // include experimental languages
},
}),
) as Record<string, string[]>;
}