Skip to content

Conversation

@a-stewart
Copy link
Contributor

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.

In addition to #198821 - to avoid causing cursor jumps when switching between modes via commands (bug #204572) - it only retains the cursor position if the text content is unchanged.

Example of how this works using a console log:
demo

@a-stewart a-stewart changed the title Stop the cursor from jumping when changing prefix in QuickAccess (#198821) - v2 Feb 8, 2024
@TylerLeonhardt TylerLeonhardt added this to the Backlog milestone Feb 13, 2024
@a-stewart
Copy link
Contributor Author

@TylerLeonhardt - friendly ping for this.

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.

Seems to work as expected. Thanks for following through with this!

@TylerLeonhardt TylerLeonhardt enabled auto-merge (squash) March 20, 2024 23:51
@TylerLeonhardt TylerLeonhardt modified the milestones: Backlog, March 2024 Mar 20, 2024
@TylerLeonhardt TylerLeonhardt merged commit 09d5f4e into microsoft:main Mar 21, 2024
@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

3 participants