Skip to content

Delete files action deletes wrong file if the cursor (the blue border?) is not on the selected files. #124611

Closed
@andyhohorst-highgear

Description

@andyhohorst-highgear

Issue Type: Bug

Steps to reproduce:

  • Open a folder in VS Code
  • Select multiple files
  • Ctrl-click to deselect one or more files
  • Press DELETE key
  • Prompt and delete action work on the most recently deselected file (whichever one has the border)

Expected: That selecting a set of files and pressing DELETE would work on the complete selection, regardless of the steps taken to get to that selection.

The delete action works as expected as long as the blue border is on part of the selected set of files. If the most recently selected/deselected file is not part of the selected set of files, it is treated as the only file selected.

image
image

VS Code version: Code - Insiders 1.57.0-insider (286b643, 2021-05-25T05:24:28.413Z)
OS version: Windows_NT x64 10.0.19042

System Info
Item Value
CPUs Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz (12 x 2208)
GPU Status 2d_canvas: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
rasterization: enabled
skia_renderer: enabled_on
video_decode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
Load (avg) undefined
Memory (System) 39.75GB (19.40GB free)
Process Argv --crash-reporter-id 4e2c608a-5566-4ff8-9bed-2d58870e9773
Screen Reader no
VM 0%
Extensions: none
A/B Experiments
vsliv695:30137379
vsins829:30139715
vsliv368cf:30146710
vsreu685:30147344
python383cf:30185419
pythonvspyt602:30291494
vspor879:30202332
vspor708:30202333
vspor363:30204092
pythonvspyt639:30291487
pythontb:30258533
pythonvspyt551cf:30291413
vspre833cf:30267465
pythonptprofiler:30281269
vshan820:30294714
pythondataviewer:30285072
vscus158cf:30286554
pythonvsuse255:30303025
vscgsv2:30305091
vscorehov:30301224
vscod805:30301674

Metadata

Metadata

Assignees

Labels

*duplicateIssue identified as a duplicate of another issue(s)file-explorerExplorer widget issues

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions