(workflowData *WorkflowData)
| 57 | } |
| 58 | |
| 59 | func 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. |
no test coverage detected