Skip to main content

Module Loading

Module Loading 

Source
Expand description

Configuration loading and merging utilities.

Structsยง

CachedSettingsValue ๐Ÿ”’

Constantsยง

SETTINGS_FILE_CACHE_TTL_MS ๐Ÿ”’
Short TTL cache for parsed settings.json reads. The InspectConfigurationValue handler reads BOTH the user settings.json and the workspace settings.json on every call; log audit 20260501T053137 shows ~57 Inspect calls per session = 114 disk reads of the same one or two files. With this cache, repeated reads within TTL_MS reuse the parsed Value and 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ยง

ClearSettingsFileCache
Drop every cached settings.json parse. Caller: any code path that mutates settings (UpdateConfigurationValue, initialize_and_merge_configurations).
InsertDottedDefault ๐Ÿ”’
Insert a value into target at the dotted path git.enabled, creating intermediate object nodes as needed. Mirrors inspect_configuration_valueโ€™s try_fold traversal so a lookup for git.enabled finds target["git"]["enabled"].
SettingsFileCache ๐Ÿ”’
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.