vscode icon indicating copy to clipboard operation
vscode copied to clipboard

Unexpected Final Selection After Running Delete Duplicate Lines

Open josephxiao8 opened this issue 1 year ago • 0 comments

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

josephxiao8 avatar Nov 27 '24 23:11 josephxiao8