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

workspace::Open: Fix trapped cursor/selection on update #25402

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

5brian
Copy link
Contributor

@5brian 5brian commented Feb 22, 2025

Closes #ISSUE

Issue: Selection index does not reset when the matches update, which can lead to the selection getting trapped when that index does not exist in the next matches.

Screen.Recording.2025-02-22.at.12.45.02.PM.mov

This is in workspace::Open with "use_system_path_prompts": false

Release Notes:

  • N/A

@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Feb 22, 2025
@5brian 5brian marked this pull request as ready for review February 22, 2025 18:09
@ConradIrwin
Copy link
Member

Thanks! We should only do this if the index no longer exists, otherwise it'll keep jumping to the top.

@5brian 5brian marked this pull request as draft February 22, 2025 23:10
@5brian
Copy link
Contributor Author

5brian commented Feb 22, 2025

@ConradIrwin, just to double check, is this behavior not wanted? -- it looks like it matches the file finder

File finder: (Reset on every update)

Screen.Recording.2025-02-22.at.6.36.26.PM.mov

File open:

Screen.Recording.2025-02-22.at.6.36.06.PM.mov

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-signed The user has signed the Contributor License Agreement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants