MCPcopy Create free account
hub / github.com/Chat2AnyLLM/code-agent-manager / LoadAll

Method LoadAll

internal/editorconfig/json_tool.go:84–98  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

82}
83
84func (c *jsonToolConfig) LoadAll() map[string]ScopedConfig {
85 all := map[string]ScopedConfig{}
86 for _, scope := range []Scope{UserScope, ProjectScope} {
87 path := c.PathFor(scope)
88 if path == "" {
89 continue
90 }
91 data, _, err := loadJSON(path)
92 if err != nil {
93 continue
94 }
95 all[string(scope)] = ScopedConfig{Data: data, Path: path}
96 }
97 return all
98}
99
100func (c *jsonToolConfig) Set(scope Scope, keyPath string, value any) (string, error) {
101 parts, err := Parse(keyPath)

Callers

nothing calls this directly

Calls 2

PathForMethod · 0.95
loadJSONFunction · 0.85

Tested by

no test coverage detected