Skip to content

Start reducing use of chatSessionType#273588

Merged
mjbvz merged 1 commit intomicrosoft:mainfrom
mjbvz:dev/mjbvz/multiple-swift
Oct 27, 2025
Merged

Start reducing use of chatSessionType#273588
mjbvz merged 1 commit intomicrosoft:mainfrom
mjbvz:dev/mjbvz/multiple-swift

Conversation

@mjbvz
Copy link
Copy Markdown
Collaborator

@mjbvz mjbvz commented Oct 27, 2025

We should be able to use the resource for this instead

We should be able to use the resource for this instead
@mjbvz mjbvz self-assigned this Oct 27, 2025
Copilot AI review requested due to automatic review settings October 27, 2025 16:08
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 refactors the chat sessions service to remove the chatSessionType parameter from several methods, relying instead on the session resource's URI scheme. This simplifies the API by reducing redundant parameters since the session type can be derived from the resource itself.

Key changes:

  • Removes chatSessionType parameter from session option methods and callbacks
  • Introduces SessionOptionsChangedCallback type alias for cleaner type definitions
  • Updates all call sites to use the simplified API

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/vs/workbench/contrib/chat/common/chatSessionsService.ts Defines SessionOptionsChangedCallback type and removes chatSessionType from interface method signatures
src/vs/workbench/contrib/chat/browser/chatSessions.contribution.ts Updates service implementation to remove chatSessionType parameter from option-related methods
src/vs/workbench/contrib/chat/browser/chatInputPart.ts Updates call sites to remove chatSessionType argument when calling session option methods
src/vs/workbench/api/browser/mainThreadChatSessions.ts Derives session type from sessionResource.scheme instead of using separate parameter
src/vs/workbench/contrib/chat/test/common/mockChatSessionsService.ts Updates mock implementation to match new interface signatures

@vs-code-engineering vs-code-engineering Bot added this to the October 2025 milestone Oct 27, 2025
@mjbvz mjbvz enabled auto-merge October 27, 2025 16:15
@mjbvz mjbvz merged commit 0d4e501 into microsoft:main Oct 27, 2025
17 checks passed
@vs-code-engineering vs-code-engineering Bot locked and limited conversation to collaborators Dec 11, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants