Skip to content

disable next/previous tip actions when only one remains#297747

Merged
meganrogge merged 2 commits intomainfrom
merogge/last-tip
Feb 25, 2026
Merged

disable next/previous tip actions when only one remains#297747
meganrogge merged 2 commits intomainfrom
merogge/last-tip

Conversation

@meganrogge
Copy link
Collaborator

fix #297391

Copilot AI review requested due to automatic review settings February 25, 2026 18:17
@meganrogge meganrogge self-assigned this Feb 25, 2026
@meganrogge meganrogge added this to the February 2026 milestone Feb 25, 2026
@meganrogge meganrogge enabled auto-merge (squash) February 25, 2026 18:18
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 pull request fixes issue #297391 where the next/previous tip navigation buttons were active even when only one tip remained, leading to confusing behavior when clicked.

Changes:

  • Adds a new context key multipleChatTips to track when multiple tips are available
  • Disables next/previous navigation buttons when only one eligible tip remains
  • Refactors tip navigation logic to count eligible tips before allowing navigation

Reviewed changes

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

File Description
src/vs/workbench/contrib/chat/common/actions/chatContextKeys.ts Adds multipleChatTips context key definition
src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTipContentPart.ts Binds and updates multipleChatTips context key; adds preconditions to navigation actions
src/vs/workbench/contrib/chat/browser/chatTipService.ts Implements hasMultipleTips() method and refactors navigation logic to count eligible tips

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@meganrogge meganrogge merged commit 15fa1cf into main Feb 25, 2026
20 checks passed
@meganrogge meganrogge deleted the merogge/last-tip branch February 25, 2026 21:33
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.

with last tip shown, next previous buttons don't show anything

3 participants