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

Function getSettingsFilePathForSource

src/utils/settings/settings.ts:274–296  ·  view source on GitHub ↗
(
  source: SettingSource,
)

Source from the content-addressed store, hash-verified

272}
273
274export function getSettingsFilePathForSource(
275 source: SettingSource,
276): string | undefined {
277 switch (source) {
278 case 'userSettings':
279 return join(
280 getSettingsRootPathForSource(source),
281 getUserSettingsFilePath(),
282 )
283 case 'projectSettings':
284 case 'localSettings': {
285 return join(
286 getSettingsRootPathForSource(source),
287 getRelativeSettingsFilePathForSource(source),
288 )
289 }
290 case 'policySettings':
291 return getManagedSettingsFilePath()
292 case 'flagSettings': {
293 return getFlagSettingsPath()
294 }
295 }
296}
297
298export function getRelativeSettingsFilePathForSource(
299 source: 'projectSettings' | 'localSettings',

Callers 15

getSettingsPathsFunction · 0.85
formatPermissionSourceFunction · 0.85
getWatchTargetsFunction · 0.85
getSourceForPathFunction · 0.85
updateSettingsForSourceFunction · 0.85
loadSettingsFromDiskFunction · 0.85
rawSettingsContainsKeyFunction · 0.85
getAllHooksFunction · 0.85
callFunction · 0.85

Tested by

no test coverage detected