[PR #15060] [MERGED] cmd: ollama launch vscode #25535

Closed
opened 2026-04-19 18:16:09 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/15060
Author: @hoyyeva
Created: 3/25/2026
Status: Merged
Merged: 3/25/2026
Merged by: @hoyyeva

Base: mainHead: hoyyeva/vs-code


📝 Commits (5)

📊 Changes

7 files changed (+1139 additions, -8 deletions)

View changed files

📝 cmd/cmd.go (+4 -0)
📝 cmd/cmd_launcher_test.go (+37 -0)
📝 cmd/launch/launch.go (+1 -7)
📝 cmd/launch/registry.go (+13 -1)
cmd/launch/vscode.go (+594 -0)
cmd/launch/vscode_test.go (+486 -0)
📝 cmd/tui/tui.go (+4 -0)

📄 Description

Add VS Code as an integration (ollama launch vscode) from the Ollama TUI. Registers
Ollama as a BYOK vendor so Copilot Chat discovers local and cloud models, and syncs the TUI
model selection to VS Code's model picker.

Details

  • Register Ollama vendor in chatLanguageModels.json
  • Write chatModelPickerPreferences in VS Code's state DB to show/hide Ollama models based on
    TUI selection
  • Pull cloud models not yet in ollama ls so VS Code can discover them
  • Gracefully quit and relaunch VS Code so DB writes take effect
  • Warn if VS Code or Copilot Chat extension version is outdated/missing
  • Exit the TUI loop after launching

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/15060 **Author:** [@hoyyeva](https://github.com/hoyyeva) **Created:** 3/25/2026 **Status:** ✅ Merged **Merged:** 3/25/2026 **Merged by:** [@hoyyeva](https://github.com/hoyyeva) **Base:** `main` ← **Head:** `hoyyeva/vs-code` --- ### 📝 Commits (5) - [`ecb76a9`](https://github.com/ollama/ollama/commit/ecb76a99930dd8a57593e3504730c0818f445592) cmd: add ollama launch vscode - [`7764fa9`](https://github.com/ollama/ollama/commit/7764fa991e689e4d8456ad3ebee6d93a908dbd37) clean up - [`fe81e17`](https://github.com/ollama/ollama/commit/fe81e176cfbbfe0ea6dd872103ebdffb9760151f) Update cmd/launch/vscode.go - [`3f9873d`](https://github.com/ollama/ollama/commit/3f9873d9d94d7418c34846de3367e768474fffe2) pin vscode - [`1b8df5d`](https://github.com/ollama/ollama/commit/1b8df5d451fd02972a21eec7b10364ac8765c3d2) address comment ### 📊 Changes **7 files changed** (+1139 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `cmd/cmd.go` (+4 -0) 📝 `cmd/cmd_launcher_test.go` (+37 -0) 📝 `cmd/launch/launch.go` (+1 -7) 📝 `cmd/launch/registry.go` (+13 -1) ➕ `cmd/launch/vscode.go` (+594 -0) ➕ `cmd/launch/vscode_test.go` (+486 -0) 📝 `cmd/tui/tui.go` (+4 -0) </details> ### 📄 Description Add VS Code as an integration (`ollama launch vscode`) from the Ollama TUI. Registers Ollama as a BYOK vendor so Copilot Chat discovers local and cloud models, and syncs the TUI model selection to VS Code's model picker. **Details** - Register Ollama vendor in chatLanguageModels.json - Write chatModelPickerPreferences in VS Code's state DB to show/hide Ollama models based on TUI selection - Pull cloud models not yet in ollama ls so VS Code can discover them - Gracefully quit and relaunch VS Code so DB writes take effect - Warn if VS Code or Copilot Chat extension version is outdated/missing - Exit the TUI loop after launching --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-19 18:16:09 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#25535