Repository navigation
[Error] [GitHub.copilot-chat] unhandlederror-Error in extension github.copilot-chat: FAILED to handle event: Invalid argument #341566
Copy link
Copy link
Open
Labels
*fixTrigger a agentic workflow to provide analysis and propose PR.Trigger a agentic workflow to provide analysis and propose PR.ai-generatedGenerated by AI automation workflowsGenerated by AI automation workflowsbugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bugerror-telemetryVS Code - Issues generated by telemetryVS Code - Issues generated by telemetryextensionrecent-regression
Description
Error Message
unhandlederror-Error in extension github.copilot-chat: FAILED to handle event: Invalid argument
Stack Trace
at kO.toOffsetRange (../src/extension/inlineEdits/vscode-node/parts/vscodeWorkspace.ts:502:38)
at translateRange (../src/extension/inlineEdits/vscode-node/parts/vscodeWorkspace.ts:674:15)
at toDiagnosticData (../src/extension/inlineEdits/vscode-node/parts/vscodeWorkspace.ts:316:9)
at YN._createTextDocumentDiagnosticData (../src/extension/inlineEdits/vscode-node/parts/vscodeWorkspace.ts:312:61)
at listOnTimeout (node:internal/timers:685:17) [not deminified]
at process.processTimers (node:internal/timers:618:7) [not deminified]
Raw Stack Trace (minified)
Error: Invalid argument <REDACTED: URL> <REDACTED: URL> <REDACTED: URL> at kO.toOffsetRange (<REDACTED: user-file-path> VS <REDACTED: user-file-path>/resources\app\extensions\copilot\dist\extension.js:3479:18443) at <REDACTED: user-file-path> VS <REDACTED: user-file-path>/resources\app\extensions\copilot\dist\extension.js:3479:16894 at Jit (<REDACTED: user-file-path> VS <REDACTED: user-file-path>/resources\app\extensions\copilot\dist\extension.js:3479:20890) at YN._createDiagnosticData (<REDACTED: user-file-path> VS <REDACTED: user-file-path>/resources\app\extensions\copilot\dist\extension.js:3479:16864) at <REDACTED: user-file-path> VS <REDACTED: user-file-path>/resources\app\extensions\copilot\dist\extension.js:3479:16791 at Array.map (<anonymous>) at YN._createTextDocumentDiagnosticData (<REDACTED: user-file-path> VS <REDACTED: user-file-path>/resources\app\extensions\copilot\dist\extension.js:3479:16779) at <REDACTED: user-file-path> VS <REDACTED: user-file-path>/resources\app\extensions\copilot\dist\extension.js:3479:15244 at Array.forEach (<anonymous>) at <REDACTED: user-file-path> VS <REDACTED: user-file-path>/resources\app\extensions\copilot\dist\extension.js:3479:15135 <REDACTED: URL> <REDACTED: URL> <REDACTED: URL> <REDACTED: URL> <REDACTED: URL> <REDACTED: URL> <REDACTED: URL> <REDACTED: URL> <REDACTED: URL> at listOnTimeout (node:<REDACTED: user-file-path>:685:17) at process.processTimers (node:<REDACTED: user-file-path>:618:7)
Details
| Property | Value |
|---|---|
| Bucket ID | b37e9866-de52-8c8d-83ae-b33ceb248911 |
| Extension Version | 0.69.0 |
| Last Seen | Tue Oct 13 2026 23:53:45 GMT+0000 (Coordinated Universal Time) |
| Platforms | win32 |
| Product | VSCode |
This issue was automatically created from the VS Code Errors Dashboard
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
*fixTrigger a agentic workflow to provide analysis and propose PR.Trigger a agentic workflow to provide analysis and propose PR.ai-generatedGenerated by AI automation workflowsGenerated by AI automation workflowsbugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bugerror-telemetryVS Code - Issues generated by telemetryVS Code - Issues generated by telemetryextensionrecent-regression
Activity
vs-code-engineering commentedon Oct 14, 2026
Regression Details
GitHub.copilot-chat)spikev0.68.0: 6 users → currentv0.69.0: 48 users; 35,364 hits)1.141.1Deminified call path (clean source mapping)
kO.toOffsetRange→../src/extension/inlineEdits/vscode-node/parts/vscodeWorkspace.ts:502:38translateRange→../src/extension/inlineEdits/vscode-node/parts/vscodeWorkspace.ts:674:15toDiagnosticData→../src/extension/inlineEdits/vscode-node/parts/vscodeWorkspace.ts:316:9_createTextDocumentDiagnosticData→../src/extension/inlineEdits/vscode-node/parts/vscodeWorkspace.ts:312:61The
Invalid argumenterror originates intoOffsetRangewhile building inline-edit diagnostic data (toDiagnosticData→translateRange), suggesting an out-of-bounds or stale range is being translated into offset space for a text document that no longer matches the supplied range. The extremely high hit-to-user ratio (35K hits / 48 users) indicates a tight retry/loop firing repeatedly per affected session.Why this is a distinct regression
This is a new error family not covered by the existing open trackers for
0.69.0(#341309resolveAutoModeEndpointstreams, #331652Illegal value for line, #340060allowRepositoryUrl). The closest existing issue, #326632, is a differentFAILED to handle eventvariant (Cannot read properties of undefined (reading 'startOffset')inalternativeNotebookTextDocument.ts) with an unrelated call path, so it is tracked separately here.