microsoft/vscode · error · Error
Remote control URL is too long to render as a QR code.
Error message
Remote control URL is too long to render as a QR code.
What it means
Error "Remote control URL is too long to render as a QR code." thrown in microsoft/vscode.
Source
Thrown at extensions/copilot/src/extension/chatSessions/copilotcli/node/copilotcliSession.ts:557
result.shift();
result.push(0);
for (let i = 0; i < degree; i++) {
result[i] ^= qrGfMultiply(generator[i], factor);
}
}
return result;
}
function appendQrBits(bits: boolean[], value: number, length: number): void {
for (let i = length - 1; i >= 0; i--) {
bits.push(((value >>> i) & 1) === 1);
}
}
function getQrDataCodewords(data: string): number[] {
const bytes = Array.from(Buffer.from(data, 'utf8'));
if (bytes.length > 106) {
throw new Error('Remote control URL is too long to render as a QR code.');
}
const bits: boolean[] = [];
appendQrBits(bits, 0b0100, 4);
appendQrBits(bits, bytes.length, 8);
for (const byte of bytes) {
appendQrBits(bits, byte, 8);
}
for (let i = 0; i < 4 && bits.length < qrDataCodewords * 8; i++) {
bits.push(false);
}
while (bits.length % 8 !== 0) {
bits.push(false);
}
const codewords: number[] = [];
for (let i = 0; i < bits.length; i += 8) {View on GitHub (pinned to a94b963a32)
When it happens
Trigger: Thrown at extensions/copilot/src/extension/chatSessions/copilotcli/node/copilotcliSession.ts:557 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/2077657b6ae36a54.
Report an issue: GitHub.