{"record":{"id":"1b31d6ed0add3137","repo":"microsoft/vscode","slug":"copilot-currently-does-not-support-uri-with-scheme","errorCode":null,"errorMessage":"Copilot currently does not support URI with scheme: ${uri.scheme}","messagePattern":"Copilot currently does not support URI with scheme: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"extensions/copilot/src/extension/completions-core/vscode-node/lib/src/util/uri.ts","lineNumber":91,"sourceCode":"\t\t// not normalizable, return as is\n\t\treturn uri;\n\t}\n}\n\n/**\n * URI schemes that map to real file system paths.\n */\nconst fsSchemes = new Set(['file', 'notebook', 'vscode-notebook', 'vscode-notebook-cell']);\n\n/**\n * For a file system URI, returns the corresponding file system path. Otherwise\n * throws an error.\n */\nexport function fsPath(arg: URIContainer | string): string {\n\tconst uri = parseUri(arg);\n\n\tif (!fsSchemes.has(uri.scheme)) {\n\t\tthrow new Error(`Copilot currently does not support URI with scheme: ${uri.scheme}`);\n\t}\n\n\tif (platform() === 'win32') {\n\t\tlet path = uri.path;\n\n\t\tif (uri.authority) {\n\t\t\tpath = `//${uri.authority}${uri.path}`; // UNC path\n\t\t} else if (/^\\/[A-Za-z]:/.test(path)) {\n\t\t\t// omit leading slash from paths with a drive letter\n\t\t\tpath = path.substring(1);\n\t\t}\n\t\treturn normalize(path);\n\t} else if (uri.authority) {\n\t\tthrow new Error('Unsupported remote file path');\n\t} else {\n\t\treturn uri.path;\n\t}\n}","sourceCodeStart":73,"sourceCodeEnd":109,"githubUrl":"https://github.com/microsoft/vscode/blob/a94b963a32aa9749d69504576791fa29700ae46d/extensions/copilot/src/extension/completions-core/vscode-node/lib/src/util/uri.ts#L73-L109","documentation":"Error \"Copilot currently does not support URI with scheme: ${uri.scheme}\" thrown in microsoft/vscode.","triggerScenarios":"Thrown at extensions/copilot/src/extension/completions-core/vscode-node/lib/src/util/uri.ts:91 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"}