Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Dec 4, 2025

Addresses review feedback from #281316: Using resource.scheme directly is incorrect for local chat sessions.

The getChatSessionType() function properly handles:

  • vscodeChatEditor scheme → returns localChatSessionType
  • vscodeLocalChatSession scheme → returns resource.authority
  • Contributed sessions → returns resource.scheme

Changes:

  • Replace resource.scheme with getChatSessionType(resource) in context overlay
  • Use correct context key ChatContextKeys.agentSessionType.key

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

…type handling

Co-authored-by: osortega <48293249+osortega@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix multidiff menu actions based on feedback Use getChatSessionType for proper session type handling in multidiff content Dec 4, 2025
Copilot AI requested a review from osortega December 4, 2025 22:02
Copilot finished work on behalf of osortega December 4, 2025 22:02
Base automatically changed from osortega/multidiff-menu-fixes to main December 5, 2025 00:32
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