Skip to main content

Module UpdateValue

Module UpdateValue 

Source
Expand description

Configuration value update and persistence.

Implements UpdateConfigurationValue for MountainEnvironment. Resolves the write target to a concrete settings.json path, performs a read-modify-write, then invalidates the parse cache and triggers a full re-merge so subsequent reads reflect the change.

§Target resolution

ConfigurationTargetWrite destination
User / UserLocal<app-config>/settings.json
Workspaceworkspace settings.json
WorkspaceFolder<first-folder>/.vscode/settings.json
Memoryin-memory merged map only; no disk write
Default / Policyerror - read-only by spec

Passing Value::Null as the new value removes the key from the target file rather than writing a null literal, matching VS Code’s “reset to default” behaviour.

Functions§

update_configuration_value 🔒
Updates a configuration value in the appropriate settings.json file.