(source: SettingSource)
| 24 | export type SettingSource = (typeof SETTING_SOURCES)[number] |
| 25 | |
| 26 | export function getSettingSourceName(source: SettingSource): string { |
| 27 | switch (source) { |
| 28 | case 'userSettings': |
| 29 | return 'user' |
| 30 | case 'projectSettings': |
| 31 | return 'project' |
| 32 | case 'localSettings': |
| 33 | return 'project, gitignored' |
| 34 | case 'flagSettings': |
| 35 | return 'cli flag' |
| 36 | case 'policySettings': |
| 37 | return 'managed' |
| 38 | } |
| 39 | } |
| 40 | |
| 41 | /** |
| 42 | * Get short display name for a setting source (capitalized, for context/skills UI) |
no outgoing calls
no test coverage detected