()
| 21 | * includes MCP errors to avoid the circular dependency. |
| 22 | */ |
| 23 | export function getSettingsWithAllErrors(): SettingsWithErrors { |
| 24 | const result = getSettingsWithErrors() |
| 25 | // 'dynamic' scope does not have errors returned; it throws and is set on cli startup |
| 26 | const scopes = ['user', 'project', 'local'] as const |
| 27 | const mcpErrors = scopes.flatMap(scope => getMcpConfigsByScope(scope).errors) |
| 28 | return { |
| 29 | settings: result.settings, |
| 30 | errors: [...result.errors, ...mcpErrors], |
| 31 | } |
| 32 | } |
| 33 |
no test coverage detected