Skip to content

Remove confusing chatResource from NewChatSessionOpenOptions#300236

Merged
mjbvz merged 1 commit intomicrosoft:mainfrom
mjbvz:dev/mjbvz/blonde-otter
Mar 9, 2026
Merged

Remove confusing chatResource from NewChatSessionOpenOptions#300236
mjbvz merged 1 commit intomicrosoft:mainfrom
mjbvz:dev/mjbvz/blonde-otter

Conversation

@mjbvz
Copy link
Copy Markdown
Collaborator

@mjbvz mjbvz commented Mar 9, 2026

Looks like this is no longer being used

Also adopts LocalChatSessionUri.getNewSessionUri

Looks like this is no longer being used
Copilot AI review requested due to automatic review settings March 9, 2026 19:10
@mjbvz mjbvz enabled auto-merge March 9, 2026 19:10
@vs-code-engineering vs-code-engineering bot added this to the 1.112.0 milestone Mar 9, 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

Removes the unused/unclear chatResource override from the internal NewChatSessionOpenOptions shape and standardizes local sidebar session resource creation by using LocalChatSessionUri.getNewSessionUri().

Changes:

  • Removed chatResource?: UriComponents from NewChatSessionOpenOptions.
  • Simplified getResourceForNewChatSession by removing the revive/override branch.
  • Switched local sidebar “new session” resource creation to LocalChatSessionUri.getNewSessionUri().

@mjbvz mjbvz merged commit 8c35874 into microsoft:main Mar 9, 2026
21 of 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