MCPcopy Create free account
hub / github.com/anus-dev/ANUS / forScope

Method forScope

packages/cli/src/config/settings.ts:135–146  ·  view source on GitHub ↗
(scope: SettingScope)

Source from the content-addressed store, hash-verified

133 }
134
135 forScope(scope: SettingScope): SettingsFile {
136 switch (scope) {
137 case SettingScope.User:
138 return this.user;
139 case SettingScope.Workspace:
140 return this.workspace;
141 case SettingScope.System:
142 return this.system;
143 default:
144 throw new Error(`Invalid scope: ${scope}`);
145 }
146 }
147
148 setValue<K extends keyof Settings>(
149 scope: SettingScope,

Callers 8

setValueMethod · 0.95
saveModifiedSettingsFunction · 0.80
removeMcpServerFunction · 0.80
addMcpServerFunction · 0.80
EditorSettingsDialogFunction · 0.80
SettingsDialogFunction · 0.80
generateSettingsItemsFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected