MCPcopy Create free account
hub / github.com/github/gh-aw / buildCopilotSettingsContent

Function buildCopilotSettingsContent

pkg/workflow/copilot_engine_execution.go:59–72  ·  view source on GitHub ↗
(workflowData *WorkflowData)

Source from the content-addressed store, hash-verified

57}
58
59func buildCopilotSettingsContent(workflowData *WorkflowData) string {
60 settings := copilotSettings{
61 BuiltInAgents: map[string]bool{"rubberDuck": false},
62 }
63 if workflowData != nil {
64 manager := NewLSPManager(workflowData.LSP)
65 settings.LSPServers = manager.CopilotLSPServers()
66 }
67 settingsBytes, err := json.Marshal(settings)
68 if err != nil {
69 return copilotSettingsDefaultContent
70 }
71 return string(settingsBytes)
72}
73
74// buildCopilotSettingsSetup returns shell commands that write the Copilot CLI settings
75// file before the agent runs, disabling the rubber-duck sub-agent.

Callers 2

Calls 2

CopilotLSPServersMethod · 0.95
NewLSPManagerFunction · 0.85

Tested by

no test coverage detected