MCPcopy
hub / github.com/codeaashu/claude-code / getSettingsWithErrors

Function getSettingsWithErrors

src/utils/settings/settings.ts:856–868  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

854 * @returns Merged settings and all validation errors encountered
855 */
856export function getSettingsWithErrors(): SettingsWithErrors {
857 // Use cached result if available
858 const cached = getSessionSettingsCache()
859 if (cached !== null) {
860 return cached
861 }
862
863 // Load from disk and cache the result
864 const result = loadSettingsFromDisk()
865 profileCheckpoint('loadSettingsFromDisk_end')
866 setSessionSettingsCache(result)
867 return result
868}
869
870/**
871 * Check if any raw settings file contains a specific key, regardless of validation.

Callers 4

runFunction · 0.85
getInitialSettingsFunction · 0.85
getSettingsWithAllErrorsFunction · 0.85

Calls 4

getSessionSettingsCacheFunction · 0.85
loadSettingsFromDiskFunction · 0.85
profileCheckpointFunction · 0.85
setSessionSettingsCacheFunction · 0.85

Tested by

no test coverage detected