MCPcopy
hub / github.com/claude-code-best/claude-code / getEnabledSettingSources

Function getEnabledSettingSources

src/utils/settings/constants.ts:159–167  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

157 * @returns Array of enabled SettingSource values
158 */
159export function getEnabledSettingSources(): SettingSource[] {
160 const allowed = getAllowedSettingSources()
161
162 // Always include policy and flag settings
163 const result = new Set<SettingSource>(allowed)
164 result.add('policySettings')
165 result.add('flagSettings')
166 return Array.from(result)
167}
168
169/**
170 * Check if a specific source is enabled

Callers 6

loadSettingsFromDiskFunction · 0.85
getSettingsWithSourcesFunction · 0.85
rawSettingsContainsKeyFunction · 0.85
isSettingSourceEnabledFunction · 0.85

Calls 2

getAllowedSettingSourcesFunction · 0.85
addMethod · 0.45

Tested by

no test coverage detected