microsoft/vscode · error
Unsupported remote file path
Error message
Unsupported remote file path
What it means
Error "Unsupported remote file path" thrown in microsoft/vscode.
Source
Thrown at extensions/copilot/src/extension/completions-core/vscode-node/lib/src/util/uri.ts:105
export function fsPath(arg: URIContainer | string): string {
const uri = parseUri(arg);
if (!fsSchemes.has(uri.scheme)) {
throw new Error(`Copilot currently does not support URI with scheme: ${uri.scheme}`);
}
if (platform() === 'win32') {
let path = uri.path;
if (uri.authority) {
path = `//${uri.authority}${uri.path}`; // UNC path
} else if (/^\/[A-Za-z]:/.test(path)) {
// omit leading slash from paths with a drive letter
path = path.substring(1);
}
return normalize(path);
} else if (uri.authority) {
throw new Error('Unsupported remote file path');
} else {
return uri.path;
}
}
/**
* For a file system URI, returns the corresponding file system path. Returns
* undefined otherwise.
*/
export function getFsPath(uri: URIContainer | string): string | undefined {
try {
return fsPath(uri);
} catch {
return undefined;
}
}
/**View on GitHub (pinned to a94b963a32)
When it happens
Trigger: Thrown at extensions/copilot/src/extension/completions-core/vscode-node/lib/src/util/uri.ts:105 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of microsoft/vscode@a94b963a32 (2026-08-12).
Data as JSON: /api/errors/cead9fe33b0ad781.
Report an issue: GitHub.