()
| 854 | * @returns Merged settings and all validation errors encountered |
| 855 | */ |
| 856 | export 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. |
no test coverage detected