Skip to content

Multiselection in open editors is badly managed #186892

@PhiLhoSoft

Description

@PhiLhoSoft

Type: Bug

I have several dozens of file opened in the Explorer / Open editors.
I select one, Shift+click on another below, all the range is selected, OK.
image
I hit Ctrl+F4, the selected files are closed, perfect.

Now, I select a range in the same way, I unselect one (or several files) with Ctrl+click in the selection. The last unselected file has the focus, visible with the blue outline.
image
If I hit Ctrl+F4, VSC closes only one file: the one with the focus.
image
I expected to close all selected files instead.

VS Code version: Code 1.79.2 (695af09, 2023-06-14T08:57:04.379Z)
OS version: Windows_NT x64 10.0.22621
Modes:

System Info
Item Value
CPUs 11th Gen Intel(R) Core(TM) i7-1185G7 @ 3.00GHz (8 x 1805)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
Load (avg) undefined
Memory (System) 31.73GB (8.11GB free)
Process Argv --crash-reporter-id 4d75f8cb-16cc-4be3-a184-35c10c01676f
Screen Reader no
VM 0%
Extensions (28)
Extension Author (truncated) Version
vscode-openapi 42C 4.18.5
tsl-problem-matcher amo 0.6.2
ng-template Ang 16.0.0
vscode-toggle-quotes Bri 0.3.6
npm-intellisense chr 1.4.4
path-intellisense chr 2.8.4
package-json-upgrade cod 2.0.0
vscode-eslint dba 2.4.2
css-flexbox-cheatsheet dzh 3.3.3
gitlens eam 14.0.1
EditorConfig Edi 0.16.4
vscode-jest-runner fir 0.4.60
rest-client hum 0.25.1
batch-rename-extension Jan 0.0.6
svg joc 1.5.3
docthis joe 0.7.1
import-sorter mik 3.3.1
vscode-scss mrm 0.10.0
console-master Phi 1.0.0
git-file-history pom 1.0.1
vscode-commons red 0.0.6
vscode-yaml red 1.13.0
vscode-stylelint sty 1.2.4
luna-paint Tyr 0.16.0
vscode-vlang vla 0.1.14
quokka-vscode Wal 1.0.547
change-case wma 1.0.0
markdown-all-in-one yzh 3.5.1
A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383cf:30185419
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
vserr242cf:30382550
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vsdfh931cf:30280410
vshan820:30294714
vstes263cf:30335440
vscoreces:30445986
vscod805:30301674
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593:30376534
pythonvs932:30410667
py29gd2263:30776702
vscaat:30438848
vsclangdf:30486550
c4g48928:30535728
dsvsc012:30540252
pynewext54:30695312
azure-dev_surveyone:30548225
vscccc:30610679
3biah626:30602489
pyind779:30671433
f6dab269:30613381
pythonsymbol12:30671437
a9j8j154:30646983
showlangstatbar:30737416
vsctsb:30748421
pythonms35:30701012
03d35959:30757346
pythonfmttext:30731395
pythoncmvfstrcf:30756944
fixshowwlkth:30771522
pythongtdpath:30769146
i26e3531:30780429
pythonnosm12tcf:30779713
pythonidxpt:30772539
pythonnocebcf:30776496

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable buginsiders-releasedPatch has been released in VS Code Insidersopen-editorsIssues related to the OPEN EDITORS viewverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions