vscode icon indicating copy to clipboard operation
vscode copied to clipboard

Cursor reset when expanding list in listview when using keyboard navigation

Open u3kkasha opened this issue 5 months ago • 1 comments

Bug Report

I'm aware this is not a major bug, but I beg you please I was hoping you could add a Jira ticket. I'm aware this issues here are untracked. But I use your nice extension all the time and I was hoping you'd address my problem 😭 .

Current Behavior

I usually use my keyboard for navigation, using tabs and enter and arrows to navigate between collections/documents. However, every time I expand a collection to view its documents the cursor gets reset to the top and I have to use arrow keys to move back to view the documents.

Expected Behavior/Code

I wished that the cursor would remain at the same location after expanding the list in the listview so that I can drop into the expanded section and navigate via keyboard (like other vscode listviews like file explorer for example).

Image

Environment

  • node.js / npm versions: 22.13.1 / 11.0.0
  • OS: Windows 10

Possible Solution

Please store the cursor position within the list view beforehand and move the focus to that location after expansion.

Additional Context/Screenshots

As you can see, my mouse pointer (the pencil) is stationary, I only moved it at the end to stop the recording, but I used my keyboard (arrow keys and enter) to traverse the listview.

Image

u3kkasha avatar Jun 09 '25 03:06 u3kkasha

Thanks for reporting this. I was able to reproduce this and understand your frustration.

We don't have a timeline for this but we'll follow up on this issue (and the related Jira ticket) when we have a solution.

gagik avatar Jun 09 '25 16:06 gagik