MCPcopy Index your code
hub / github.com/codeaashu/claude-code / getSettingSourceName

Function getSettingSourceName

src/utils/settings/constants.ts:26–39  ·  view source on GitHub ↗
(source: SettingSource)

Source from the content-addressed store, hash-verified

24export type SettingSource = (typeof SETTING_SOURCES)[number]
25
26export 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)

Callers 4

getSourceTitleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected