microsoft / microsoft/vscode

Error with trying to configure launch settings when a setting with `@hasPolicy` exists

Open
#327,114 0 comments 0 reactions 1 assignee Claimed by @sandy081 View on GitHub
bug
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`):
Image

2. Try to configure any dynamically provided launch configuration (for example, using C# Dev Kit) by clicking the "gear" icon:
Image

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.
Image

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.