Skip to main content

Module InspectValue

Module InspectValue 

Source
Expand description

Configuration value introspection across all scopes.

Implements InspectConfigurationValue for MountainEnvironment. Unlike GetValue (which reads the merged cache), this function re-reads each configuration layer individually so callers can see exactly which scope provides a value:

FieldSource
DefaultValueExtension contributes.configuration defaults
UserValue<app-config>/settings.json
WorkspaceValueworkspace settings.json
EffectiveValueWorkspace โ†’ User โ†’ Default (first non-None)

Returns None when the key is not present in any scope. Dot-notation keys (e.g. "git.enabled") are resolved by splitting on . and walking the nested JSON tree, matching GetValueโ€™s traversal.

Functionsยง

inspect_configuration_value ๐Ÿ”’
Inspects a configuration key to get its value from all relevant scopes.