Skip to content

Conversation

@a-stewart
Copy link
Contributor

@a-stewart a-stewart commented Nov 22, 2023

This fixes #162914

When changing the prefix, we should check the cursor position on the currently visible picker (if one exists), and if so we should set this as the position for the new picker.

This requires a few changes to create a getter method for the selection, which doesn't currently exist.

Current (broken):
broken

This PR:
fixed

@a-stewart a-stewart marked this pull request as ready for review December 13, 2023 14:43
@a-stewart
Copy link
Contributor Author

Marking as ready for review as we have had this change on prod in our internal fork for 2 weeks with no reported issues.

@a-stewart
Copy link
Contributor Author

@TylerLeonhardt - friendly ping.

Copy link
Member

@TylerLeonhardt TylerLeonhardt left a comment

Choose a reason for hiding this comment

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

Very clean. I like this! Thanks for fixing!

@TylerLeonhardt TylerLeonhardt enabled auto-merge (squash) February 4, 2024 18:55
@TylerLeonhardt
Copy link
Member

TylerLeonhardt commented Feb 7, 2024

Hi @a-stewart. Unfortunately,I had to revert this PR as it caused this issue: #204572 sorry

If you can come up with a solution that fixes the existing issue and doesn't cause that issue, I would accept a PR

TylerLeonhardt added a commit that referenced this pull request Feb 7, 2024
@a-stewart
Copy link
Contributor Author

Sorry for that - I'll have a look and see if that can be avoided. Hopefully visibleQuickPick retains the original value, and then we can do a value compare and only keep the cursor position if the value is unchanged.

@microsoft microsoft locked and limited conversation to collaborators Jun 10, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

When editing a query inside the quick access box, the cursor jumps to EOL if the edit changes the prefix to another search mode.

3 participants