Expand description
Configuration loading and merging utilities.
Structsยง
- Cached
Settings ๐Value
Constantsยง
- SETTINGS_
FILE_ ๐CACHE_ TTL_ MS - Short TTL cache for parsed
settings.jsonreads. TheInspectConfigurationValuehandler reads BOTH the user settings.json and the workspace settings.json on every call; log audit20260501T053137shows ~57 Inspect calls per session = 114 disk reads of the same one or two files. With this cache, repeated reads withinTTL_MSreuse the parsedValueand a burst of Inspects collapses to ~1 disk read per file. TTL is short enough (250ms) that user edits to settings.json show up within a quarter-second.
Functionsยง
- Clear
Settings File Cache - Drop every cached settings.json parse. Caller: any code path
that mutates settings (
UpdateConfigurationValue,initialize_and_merge_configurations). - Insert
Dotted ๐Default - Insert a value into
targetat the dotted pathgit.enabled, creating intermediate object nodes as needed. Mirrorsinspect_configuration_valueโstry_foldtraversal so a lookup forgit.enabledfindstarget["git"]["enabled"]. - Settings
File ๐Cache - collect_
default_ ๐configurations - Collects default configurations from all installed extensions.
- initialize_
and_ merge_ configurations - Logic to load and merge all configuration files into the effective
configuration stored in
ApplicationState. - read_
and_ ๐parse_ configuration_ file - An internal helper to read and parse a single JSON configuration file.