Skip to content

Comments

refactor: remove upgradePlanUrl from model picker functions and tests#296537

Merged
isidorn merged 2 commits intomainfrom
isidorn/adorable-damselfly
Feb 20, 2026
Merged

refactor: remove upgradePlanUrl from model picker functions and tests#296537
isidorn merged 2 commits intomainfrom
isidorn/adorable-damselfly

Conversation

@isidorn
Copy link
Collaborator

@isidorn isidorn commented Feb 20, 2026

No description provided.

@isidorn isidorn added this to the February 2026 milestone Feb 20, 2026
@isidorn isidorn requested a review from sandy081 February 20, 2026 15:39
@isidorn isidorn self-assigned this Feb 20, 2026
Copilot AI review requested due to automatic review settings February 20, 2026 15:39
@isidorn isidorn enabled auto-merge February 20, 2026 15:39
Copy link
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 refactors the model picker to use a centralized command link for the "Upgrade Plan" action instead of passing the upgradePlanUrl parameter through function calls. The change simplifies the function signatures by removing the upgradePlanUrl parameter and replaces dynamic URL generation with a hardcoded command link command:workbench.action.chat.upgradePlan.

Changes:

  • Removed upgradePlanUrl parameter from buildModelPickerItems and createUnavailableModelItem functions
  • Updated localization strings to use hardcoded command links instead of URL placeholders
  • Updated all test call sites to match the new function signatures

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/vs/workbench/contrib/chat/browser/widget/input/chatModelPicker.ts Removed upgradePlanUrl parameter from function signatures and replaced dynamic URL with command link in MarkdownStrings
src/vs/workbench/contrib/chat/test/browser/widget/input/chatModelPicker.test.ts Updated test helper and direct test calls to remove upgradePlanUrl parameter

sandy081
sandy081 previously approved these changes Feb 20, 2026
@isidorn isidorn merged commit c737ece into main Feb 20, 2026
18 checks passed
@isidorn isidorn deleted the isidorn/adorable-damselfly branch February 20, 2026 16:10
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.

2 participants