Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Right-click menu in file explorer operates on open file instead of file that was right-clicked #211806

Open
onlywei opened this issue May 1, 2024 · 9 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug file-explorer Explorer widget issues

Comments

@onlywei
Copy link

onlywei commented May 1, 2024

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: 1.88.1
  • OS Version: Mac OS Sonoma 14.0 (23A344)

Steps to Reproduce:

  1. Open any file in VSCode
  2. Right-click on a different file in the file explorer.
  3. Click "delete"
  4. Notice that the file being deleted is the one that is currently open, not the one that was right-clicked on.
@lramos15
Copy link
Member

lramos15 commented May 1, 2024

I cannot repro this.
Can you include a screen recording / gif

@lramos15 lramos15 added the info-needed Issue requires more information from poster label May 1, 2024
@onlywei
Copy link
Author

onlywei commented May 1, 2024

Here is a screen recording:

Screen.Recording.2024-05-01.at.4.26.21.PM.mov

@OTonGitHub
Copy link

I had this issue on Mac too, at the time I though it's because of 2 finger tapping to open context menu in Mac. Doesn't happen on windows.

@lramos15
Copy link
Member

lramos15 commented May 2, 2024

It's odd, because on my mac right click also focuses the element.

I'm using the track pad.

@lramos15 lramos15 added bug Issue identified by VS Code Team member as probable bug file-explorer Explorer widget issues and removed info-needed Issue requires more information from poster labels May 2, 2024
@onlywei
Copy link
Author

onlywei commented May 2, 2024

I'm not using a trackpad. I'm using a mouse.

@onlywei
Copy link
Author

onlywei commented May 3, 2024

This is no longer happening to me on v1.89.0.

@tianyizheng02
Copy link

This bug still occurs for me on 1.89.0 (macOS Ventura 13.6.5, all extensions disabled, using trackpad), specifically when I'm using a split editor and one of the panes is a PDF. In my screen-recorded demo below, this buggy behavior occurs when one pane displays a PDF but not when both panes are displaying text files.

screenshot.mov

@Aesonus
Copy link

Aesonus commented May 6, 2024

When I am using on Windows, this issue occurs too. It occurs when trying to right click any file/folder that is not currently selected in the explorer, and applies to any operation in the file explorer including rename, new file, new folder, etc.

EDIT: From the comment above, it appears that any time that a preview is open (pdf, rst, html, etc) this issue occurs. If I have no preview open, the right click menu behaves as expected.

@tianyizheng02
Copy link

This bug still occurs for me on v1.90.0. @lramos15, were you ever able to reproduce this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue identified by VS Code Team member as probable bug file-explorer Explorer widget issues
Projects
None yet
Development

No branches or pull requests

5 participants