{"record":{"id":"cead9fe33b0ad781","repo":"microsoft/vscode","slug":"unsupported-remote-file-path","errorCode":null,"errorMessage":"Unsupported remote file path","messagePattern":"Unsupported remote file path","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"extensions/copilot/src/extension/completions-core/vscode-node/lib/src/util/uri.ts","lineNumber":105,"sourceCode":"export 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}\n\n/**\n * For a file system URI, returns the corresponding file system path. Returns\n * undefined otherwise.\n */\nexport function getFsPath(uri: URIContainer | string): string | undefined {\n\ttry {\n\t\treturn fsPath(uri);\n\t} catch {\n\t\treturn undefined;\n\t}\n}\n\n/**","sourceCodeStart":87,"sourceCodeEnd":123,"githubUrl":"https://github.com/microsoft/vscode/blob/a94b963a32aa9749d69504576791fa29700ae46d/extensions/copilot/src/extension/completions-core/vscode-node/lib/src/util/uri.ts#L87-L123","documentation":"Error \"Unsupported remote file path\" thrown in microsoft/vscode.","triggerScenarios":"Thrown at extensions/copilot/src/extension/completions-core/vscode-node/lib/src/util/uri.ts:105 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"}