Skip to content

Conversation

@joshspicer
Copy link
Member

same as 0760da1

Copilot AI review requested due to automatic review settings October 23, 2025 18:54
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 ensures that the options picker UI is hidden when a chat session has no options to contribute. The implementation adds a new method hasAnySessionOptions() to check if a session has any available options before displaying the picker.

Key Changes:

  • Added hasAnySessionOptions() method to check for session options availability
  • Implemented early return in chatInputPart.ts to hide options picker when no options exist
  • Added corresponding test mock implementation

Reviewed Changes

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

File Description
src/vs/workbench/contrib/chat/common/chatSessionsService.ts Added interface method declaration for checking session options existence
src/vs/workbench/contrib/chat/browser/chatSessions.contribution.ts Implemented hasAnySessionOptions() to check if session has available options
src/vs/workbench/contrib/chat/browser/chatInputPart.ts Added guard clause to hide options picker when session has no options
src/vs/workbench/contrib/chat/test/common/mockChatSessionsService.ts Implemented mock method for testing session options check

@joshspicer joshspicer enabled auto-merge (squash) October 23, 2025 18:55
@vs-code-engineering vs-code-engineering bot added this to the October 2025 milestone Oct 23, 2025
@joshspicer joshspicer merged commit bf902d9 into main Oct 23, 2025
28 checks passed
@joshspicer joshspicer deleted the joshspicer/hide-opts-more branch October 23, 2025 19:22
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