cmd: ollama launch vscode (#15060)

Co-authored-by: Parth Sareen <parth.sareen@ollama.com>
This commit is contained in:
Eva H
2026-03-25 13:37:02 -07:00
committed by GitHub
parent 7d7c90d702
commit 7575438366
7 changed files with 1139 additions and 8 deletions

View File

@@ -2065,6 +2065,10 @@ func runLauncherAction(cmd *cobra.Command, action tui.TUIAction, deps launcherDe
if err != nil {
return true, fmt.Errorf("launching %s: %w", action.Integration, err)
}
// VS Code is a GUI app — exit the TUI loop after launching
if action.Integration == "vscode" {
return false, nil
}
return true, nil
default:
return false, fmt.Errorf("unknown launcher action: %d", action.Kind)