Skip to content

Add granular provider group management actions to Manage Models#317419

Merged
vritant24 merged 8 commits into
mainfrom
dev/vritant24/manageModelsContext
May 20, 2026
Merged

Add granular provider group management actions to Manage Models#317419
vritant24 merged 8 commits into
mainfrom
dev/vritant24/manageModelsContext

Conversation

@vritant24
Copy link
Copy Markdown
Member

@vritant24 vritant24 commented May 19, 2026

Replaces the single "Configure" action for provider groups with specific actions: Update API Key, Add Model, Go to the config file, Rename, and Delete. Actions are shown based on the provider's configuration schema.
image

Copilot AI review requested due to automatic review settings May 19, 2026 23:26
@vritant24 vritant24 self-assigned this May 19, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR enhances the Manage Models experience in the chat workbench by replacing the single provider-group “Configure…” affordance with more granular provider-group management actions that are conditionally shown based on the provider’s configuration schema.

Changes:

  • Added new ILanguageModelsService APIs for provider-group management (rename, update API key, add model, open settings).
  • Extended language models configuration parsing to track the models array range and support targeted snippet insertion into either the group object or the models array.
  • Updated Manage Models UI to surface the new actions (Update API Key, Add Model, Go to Settings, Rename, Delete) and added test coverage for the new behaviors.
Show a summary per file
File Description
src/vs/workbench/contrib/chat/test/common/languageModels.ts Updates the null service stub to satisfy the expanded ILanguageModelsService interface.
src/vs/workbench/contrib/chat/test/common/languageModels.test.ts Adds unit tests covering provider-group management behaviors (rename, API key update, add model snippet targeting, open settings).
src/vs/workbench/contrib/chat/test/browser/languageModelsConfiguration.test.ts Adds a parsing test validating the newly tracked modelsRange.
src/vs/workbench/contrib/chat/test/browser/chatManagement/chatModelsViewModel.test.ts Updates mock service to satisfy the expanded ILanguageModelsService interface.
src/vs/workbench/contrib/chat/common/languageModelsConfiguration.ts Extends configuration types to support snippetTarget and modelsRange.
src/vs/workbench/contrib/chat/common/languageModels.ts Implements new provider-group management APIs and refactors snippet generation helpers.
src/vs/workbench/contrib/chat/browser/languageModelsConfigurationService.ts Enables snippet insertion targeting either the group range or the models array range; parses and maintains modelsRange.
src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsWidget.ts Replaces the single provider-group “Configure…” action with granular provider-group management actions in the UI.

Copilot's findings

  • Files reviewed: 8/8 changed files
  • Comments generated: 2

Comment thread src/vs/workbench/contrib/chat/browser/languageModelsConfigurationService.ts Outdated
Comment thread src/vs/workbench/contrib/chat/common/languageModels.ts
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot's findings

  • Files reviewed: 8/8 changed files
  • Comments generated: 2

Comment thread src/vs/workbench/contrib/chat/test/common/languageModels.test.ts
@vritant24 vritant24 marked this pull request as ready for review May 20, 2026 20:54
@vritant24 vritant24 merged commit e993390 into main May 20, 2026
25 checks passed
@vritant24 vritant24 deleted the dev/vritant24/manageModelsContext branch May 20, 2026 21:34
@vs-code-engineering vs-code-engineering Bot added this to the 1.122.0 milestone May 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants