{"record":{"id":"83dd0bd924b8ffd4","repo":"microsoft/vscode","slug":"language-languageid-is-not-supported","errorCode":null,"errorMessage":"Language ${languageId} is not supported","messagePattern":"Language (.+?) is not supported","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"extensions/copilot/src/extension/completions-core/vscode-node/prompt/src/parseBlock.ts","lineNumber":951,"sourceCode":"\t\t/* languageId */ 'cpp',\n\t\t/* nodeMatch */ {\n\t\t\t// TODO -- unused in the current usage.\n\t\t},\n\t\t/* nodeTypesWithBlockOrStmtChild */ new Map([\n\t\t\t// TODO -- unused in the current usage.\n\t\t]),\n\t\t/* startKeywords */[\n\t\t\t// TODO -- unused in the current usage.\n\t\t],\n\t\t/* blockNodeType */ 'block',\n\t\t/* emptyStatementType */ null,\n\t\t/* curlyBraceLanguage */ true\n\t),\n};\n\nexport function getBlockParser(languageId: string): BlockParser {\n\tif (!isSupportedLanguageId(languageId)) {\n\t\tthrow new Error(`Language ${languageId} is not supported`);\n\t}\n\treturn wasmLanguageToBlockParser[languageIdToWasmLanguage(languageId)];\n}\n\nexport async function isEmptyBlockStart(languageId: string, text: string, offset: number) {\n\tif (!isSupportedLanguageId(languageId)) {\n\t\treturn false;\n\t}\n\treturn getBlockParser(languageId).isEmptyBlockStart(text, offset);\n}\n\nexport async function isBlockBodyFinished(languageId: string, prefix: string, completion: string, offset: number) {\n\tif (!isSupportedLanguageId(languageId)) {\n\t\treturn undefined;\n\t}\n\treturn getBlockParser(languageId).isBlockBodyFinished(prefix, completion, offset);\n}\n","sourceCodeStart":933,"sourceCodeEnd":969,"githubUrl":"https://github.com/microsoft/vscode/blob/a94b963a32aa9749d69504576791fa29700ae46d/extensions/copilot/src/extension/completions-core/vscode-node/prompt/src/parseBlock.ts#L933-L969","documentation":"Error \"Language ${languageId} is not supported\" thrown in microsoft/vscode.","triggerScenarios":"Thrown at extensions/copilot/src/extension/completions-core/vscode-node/prompt/src/parseBlock.ts:951 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"}