{"record":{"id":"f60660f1c11e6379","repo":"microsoft/vscode","slug":"unrecognized-language-languageid","errorCode":null,"errorMessage":"Unrecognized language: ${languageId}","messagePattern":"Unrecognized language: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"extensions/copilot/src/extension/completions-core/vscode-node/prompt/src/parse.ts","lineNumber":53,"sourceCode":"\tcpp: WASMLanguage.Cpp,\n};\n\nexport function isSupportedLanguageId(languageId: string): boolean {\n\t// Temporarily disable C# support until the tree-sitter parser for it is\n\t// fully spec-ed.\n\treturn (\n\t\tlanguageId in languageIdToWasmLanguageMapping &&\n\t\tlanguageId !== 'csharp' &&\n\t\tlanguageId !== 'java' &&\n\t\tlanguageId !== 'php' &&\n\t\tlanguageId !== 'c' &&\n\t\tlanguageId !== 'cpp'\n\t);\n}\n\nexport function languageIdToWasmLanguage(languageId: string): WASMLanguage {\n\tif (!(languageId in languageIdToWasmLanguageMapping)) {\n\t\tthrow new Error(`Unrecognized language: ${languageId}`);\n\t}\n\treturn languageIdToWasmLanguageMapping[languageId];\n}\n\nconst languageLoadPromises = new Map<WASMLanguage, Promise<Parser.Language>>();\n\nasync function loadWasmLanguage(language: WASMLanguage): Promise<Parser.Language> {\n\t// construct a path that works both for the TypeScript source, which lives under `/src`, and for\n\t// the transpiled JavaScript, which lives under `/dist`\n\tlet wasmBytes;\n\ttry {\n\t\twasmBytes = await readFile(`tree-sitter-${language}.wasm`);\n\t} catch (e: unknown) {\n\t\tif (e instanceof Error && 'code' in e && typeof e.code === 'string' && e.name === 'Error') {\n\t\t\tthrow new CopilotPromptLoadFailure(`Could not load tree-sitter-${language}.wasm`, e);\n\t\t}\n\t\tthrow e;\n\t}","sourceCodeStart":35,"sourceCodeEnd":71,"githubUrl":"https://github.com/microsoft/vscode/blob/a94b963a32aa9749d69504576791fa29700ae46d/extensions/copilot/src/extension/completions-core/vscode-node/prompt/src/parse.ts#L35-L71","documentation":"Error \"Unrecognized language: ${languageId}\" thrown in microsoft/vscode.","triggerScenarios":"Thrown at extensions/copilot/src/extension/completions-core/vscode-node/prompt/src/parse.ts:53 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"analyzedSha":"a94b963a32aa9749d69504576791fa29700ae46d","analyzedAt":"2026-08-12T01:08:56.794Z","schemaVersion":2},"datasetVersion":"2026-08-12T06:17:24.410Z"}