MCPcopy Index your code
hub / github.com/getsentry/XcodeBuildMCP / applyActiveProfileToFileConfig

Function applyActiveProfileToFileConfig

src/utils/config-store.ts:441–452  ·  view source on GitHub ↗
(opts: {
  fileConfig: ProjectConfig;
  profile: string | null;
})

Source from the content-addressed store, hash-verified

439}
440
441function applyActiveProfileToFileConfig(opts: {
442 fileConfig: ProjectConfig;
443 profile: string | null;
444}): ProjectConfig {
445 const nextFileConfig: ProjectConfig = { ...opts.fileConfig };
446 if (opts.profile === null) {
447 delete nextFileConfig.activeSessionDefaultsProfile;
448 } else {
449 nextFileConfig.activeSessionDefaultsProfile = opts.profile;
450 }
451 return nextFileConfig;
452}
453
454function resolveConfig(opts: {
455 fileConfig?: ProjectConfig;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected