Skip to content

Unexpected Final Selection After Running Delete Duplicate Lines #234796

@josephxiao8

Description

@josephxiao8

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

  • VS Code Version: 1.95.3
  • OS Version: Microsoft Windows 10 Home 10.0.19045 Build 19045

Problem

Running the Delete Duplicate Lines command palette utility does not give the expected final selection based on the the initial selection. The actual final selection ending is 1 column to the left of the expected final selection.

Examples

Initial Selection Actual Final Selection ❌ Expected Final Selection ✔
Image Image Image
Image Image Image
Image Image Image

Steps to Reproduce:

  1. Copy any of the examples above into vscode
  2. Highlight the initial selection
  3. open the command palette and enter Delete Duplicate Lines
  4. Observe the final selection

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugeditor-commandsEditor text manipulation commandsinsiders-releasedPatch has been released in VS Code InsidersverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions