microsoft / microsoft/vscode

[Error] unhandlederror-Cannot read properties of undefined (reading 'replace')

Open
#326,993 2 comments 0 reactions 1 assignee Claimed by @bryanchen-d View on GitHub
ai-analyzed ai-generated bug error-telemetry recent-regression stable-anomaly
Dominant language
TypeScript
Stars
193k
Forks
42.4k
PR merge metrics
PR metrics pending

Description

## Error Message
````
unhandlederror-Cannot read properties of undefined (reading 'replace')
````

## Stack Trace
    at Gg._executeContributedCommand ([./src/vs/workbench/api/common/extHostCommands.ts:271:9](https://github.com/microsoft/vscode/blob/8a7abeba6e03ea3af87bfbce9a1b7e48fed567b8/src/vs/workbench/api/common/extHostCommands.ts#L271))

Raw Stack Trace (minified)

````
Error: Cannot read properties of undefined (reading 'replace') at Gg._executeContributedCommand (out/vs/workbench/api/node/extensionHostProcess.js:535:49185)
````

## Details
| Property | Value |
| --- | --- |
| Bucket ID | [`a4793828-950e-cec6-0638-84b36fb6ecaf`](https://errors.code.visualstudio.com/bucket/a4793828-950e-cec6-0638-84b36fb6ecaf?product=VSCode&extension=core&commit=8a7abeba6e03ea3af87bfbce9a1b7e48fed567b8) |
| Version | 1.129.1 |
| Commit | [`8a7abeba`](https://insiders.vscode.dev/github/microsoft/vscode/tree/8a7abeba6e03ea3af87bfbce9a1b7e48fed567b8) |
| Last Seen | Tue Jul 21 2026 20:20:06 GMT+0000 (Coordinated Universal Time) |
| Platforms | Windows |
| Product | VSCode |

---
*This issue was automatically created from the VS Code Errors Dashboard*

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.