@@ -224,27 +224,19 @@ func configFileTemplate(tools []domain.Tool) string {
224224 sb .WriteString (fmt .Sprintf (" - %s@%s\n " , runtime , runtimeVersions [runtime ]))
225225 }
226226 } else {
227- // In local mode with no tools specified, include only the necessary runtimes
228- for _ , meta := range domain .SupportedToolsMetadata {
229- if runtime , ok := runtimeDependencies [meta .Name ]; ok {
230- if meta .Name == "dartanalyzer" {
231- neededRuntimes ["dart" ] = true
232- } else {
233- neededRuntimes [runtime ] = true
234- }
227+ // In local mode with no tools specified, use the default tool list from plugins.GetToolVersions()
228+ var sortedTools []string
229+ for toolName := range defaultVersions {
230+ if defaultVersions [toolName ] != "" {
231+ sortedTools = append (sortedTools , toolName )
235232 }
236233 }
234+ sort .Strings (sortedTools )
237235
238- // Create a sorted slice of runtimes
239- var sortedRuntimes []string
240- for runtime := range neededRuntimes {
241- sortedRuntimes = append (sortedRuntimes , runtime )
242- }
243- sort .Strings (sortedRuntimes )
244-
245- // Write sorted runtimes
246- for _ , runtime := range sortedRuntimes {
247- sb .WriteString (fmt .Sprintf (" - %s@%s\n " , runtime , runtimeVersions [runtime ]))
236+ // Write sorted tools
237+ for _ , toolName := range sortedTools {
238+ version := defaultVersions [toolName ]
239+ sb .WriteString (fmt .Sprintf (" - %s@%s\n " , toolName , version ))
248240 }
249241 }
250242
0 commit comments