diff --git a/src/main/infer-parser.js b/src/main/infer-parser.js index 1e0220fb3..1c84ecb82 100644 --- a/src/main/infer-parser.js +++ b/src/main/infer-parser.js @@ -1,10 +1,9 @@ import path from "node:path"; -import { getSupportInfo } from "../main/support.js"; import getInterpreter from "../utils/get-interpreter.js"; function inferParser(filepath, plugins) { const filename = path.basename(filepath).toLowerCase(); - const { languages } = getSupportInfo({ plugins }); + const languages = plugins.flatMap((plugin) => plugin.languages ?? []); // If the file has no extension, we can try to infer the language from the // interpreter in the shebang line, if any; but since this requires FS access,