Skip to content

Conversation

@bpasero
Copy link
Member

@bpasero bpasero commented Nov 10, 2025

No description provided.

Copilot AI review requested due to automatic review settings November 10, 2025 06:59
@bpasero bpasero enabled auto-merge (squash) November 10, 2025 06:59
@bpasero bpasero self-assigned this Nov 10, 2025
@vs-code-engineering vs-code-engineering bot added this to the November 2025 milestone Nov 10, 2025
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 modifies the button click handler in the recently opened items picker to allow the "window opened" indicator buttons (folder/workspace) to also trigger the removal action.

  • Extends the removal condition to include windowOpenedRecentlyOpenedFolder and windowOpenedRecentlyOpenedWorkspace buttons alongside the existing removeFromRecentlyOpened button


// Remove
if (context.button === this.removeFromRecentlyOpened) {
if (context.button === this.removeFromRecentlyOpened || context.button === this.windowOpenedRecentlyOpenedFolder || context.button === this.windowOpenedRecentlyOpenedWorkspace) {
Copy link

Copilot AI Nov 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The window opened indicator buttons (windowOpenedRecentlyOpenedFolder and windowOpenedRecentlyOpenedWorkspace) should not trigger removal. Looking at lines 242-248, these buttons are shown when kind.isOpenedInWindow is true, and they're informational indicators with tooltips like 'Folder Opened in a Window' (line 67). Only the removeFromRecentlyOpened button (lines 49-52) is designed for removal with tooltip 'Remove from Recently Opened'. Making informational buttons trigger removal actions creates a confusing and unintended behavior where clicking an indicator accidentally removes the item.

Suggested change
if (context.button === this.removeFromRecentlyOpened || context.button === this.windowOpenedRecentlyOpenedFolder || context.button === this.windowOpenedRecentlyOpenedWorkspace) {
if (context.button === this.removeFromRecentlyOpened) {

Copilot uses AI. Check for mistakes.
@bpasero bpasero merged commit 09c36e5 into main Nov 10, 2025
33 of 34 checks passed
@bpasero bpasero deleted the ben/planned-elk branch November 10, 2025 07:18
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