microsoft/vscode · error

Copilot currently does not support URI with scheme: ${uri.sc

Error message

Copilot currently does not support URI with scheme: ${uri.scheme}

What it means

Error "Copilot currently does not support URI with scheme: ${uri.scheme}" thrown in microsoft/vscode.

Source

Thrown at extensions/copilot/src/extension/completions-core/vscode-node/lib/src/util/uri.ts:91

		// not normalizable, return as is
		return uri;
	}
}

/**
 * URI schemes that map to real file system paths.
 */
const fsSchemes = new Set(['file', 'notebook', 'vscode-notebook', 'vscode-notebook-cell']);

/**
 * For a file system URI, returns the corresponding file system path. Otherwise
 * throws an error.
 */
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;
	}
}

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:91 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/1b31d6ed0add3137. Report an issue: GitHub.