Error with trying to configure launch settings when a setting with `@hasPolicy` exists
- Dominant language
- TypeScript
- Stars
- 193k
- Forks
- 42.4k
- PR merge metrics
- PR metrics pending
Description
Does this issue occur when all extensions are disabled?: Yes/No
- VS Code Version: Version: 1.130.0 (Universal) Commit: 1b6a188127eeaf9194f945eb6eb89a657e93c54c Date: 2026-07-22T14:55:04Z (21 hrs ago)
- OS Version: Darwin arm64 24.6.0
Steps to Reproduce:
1. Have any setting in vscode managed by the organisation (e.g. having `@hasPolicy`):
2. Try to configure any dynamically provided launch configuration (for example, using C# Dev Kit) by clicking the "gear" icon:
3. Operation fails with the error `Unable to write undefined because it is configured in system policy.` (note that `undefined` is written instead of the actual setting id in the error message). Serialised configuration is not complete and broken.
Contributor guide
Assessment
This issue has not been assessed yet.