(key: string, value: boolean)
| 272 | * Check if a setting value is modified from its default |
| 273 | */ |
| 274 | export function isSettingModified(key: string, value: boolean): boolean { |
| 275 | const defaultValue = getDefaultValue(key); |
| 276 | // Handle type comparison properly |
| 277 | if (typeof defaultValue === 'boolean') { |
| 278 | return value !== defaultValue; |
| 279 | } |
| 280 | // If default is not a boolean, consider it modified if value is true |
| 281 | return value === true; |
| 282 | } |
| 283 | |
| 284 | /** |
| 285 | * Check if a setting exists in the original settings file for a scope |
no test coverage detected