Skip to content

Remove unused IChatSessionDto.id field#303619

Merged
mjbvz merged 1 commit intomicrosoft:mainfrom
mjbvz:dev/mjbvz/useful-narwhal
Mar 20, 2026
Merged

Remove unused IChatSessionDto.id field#303619
mjbvz merged 1 commit intomicrosoft:mainfrom
mjbvz:dev/mjbvz/useful-narwhal

Conversation

@mjbvz
Copy link
Collaborator

@mjbvz mjbvz commented Mar 20, 2026

No description provided.

Copilot AI review requested due to automatic review settings March 20, 2026 21:15
@mjbvz mjbvz enabled auto-merge March 20, 2026 21:15
@vs-code-engineering vs-code-engineering bot added this to the 1.113.0 milestone Mar 20, 2026
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 removes the unused id field from the chat session content DTO passed over the ext host ↔ main thread protocol, simplifying the contract and updating tests accordingly.

Changes:

  • Remove the id property from the chat session DTO returned by $provideChatSessionContent.
  • Update the ext host protocol type and ext host implementation to use the new DTO shape.
  • Update main thread chat sessions tests to construct session content without id.

Reviewed changes

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

File Description
src/vs/workbench/api/test/browser/mainThreadChatSessions.test.ts Updates test DTO construction/typing to no longer include id.
src/vs/workbench/api/common/extHostChatSessions.ts Stops generating/returning a synthetic session DTO id; updates return type accordingly.
src/vs/workbench/api/common/extHost.protocol.ts Removes id from the session DTO shape and updates the RPC signature to return the new type.

@mjbvz mjbvz merged commit 26d39c2 into microsoft:main Mar 20, 2026
22 checks passed
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