vscode: 'list.select' keybinding not working in file Explorer pane

Issue Type: Bug

When I select a file in the Explorer with the mouse, it opens that file but also ‘selects’ it, highlighting it with a prominent highlight.

Firstly I don’t understand the purpose of this selection. It doesn’t do anything. If I use the keyboard to move the keyboard focus to a different file, the ‘selection’ remains on the file I opened with the mouse, but if I now use a shortcut to perform some action e.g. rename, delete, this action occurs on the file with the keyboard focus not the apparently ‘selected’ file! So what the hell is the selection for? But I’ve already reported that and had that bug report closed as ‘by design’ on the basis that while it doesn’t make any sense at all that’s the way the vscode team want to do it anyway. Fine, whatever.

So this bug is to report a related but distinct issue. Which is that the keybinding for list.select doesn’t work. On my system the keybinding for list.select is Enter which is its default value. If I click a file in the Explorer with the mouse it is opened and also selected. If I then use the keyboard to move the keyboard focus to another file and press Enter the file is opened, but the file selected using the mouse remains the one highlighted as being selected

That’s got to be a bug right?

Here are some screenshots to show you what I’m talking about.

Focus0

Focus1

Open

Borked

VS Code version: Code 1.49.1 (58bb7b2331731bf72587010e943852e13e6fd3cf, 2020-09-16T23:27:51.792Z) OS version: Windows_NT x64 10.0.18362

System Info
Item Value
CPUs Intel® Core™ i7-7700HQ CPU @ 2.80GHz (8 x 2808)
GPU Status 2d_canvas: enabled
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
opengl: enabled_on
protected_video_decode: enabled
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
Load (avg) undefined
Memory (System) 15.86GB (8.05GB free)
Process Argv
Screen Reader no
VM 0%
Extensions (16)
Extension Author (truncated) Version
ng-template Ang 0.901.9
EditorConfig Edi 0.15.1
LogFileHighlighter emi 2.9.0
vscode-great-icons emm 2.1.56
vscode-jasmine-test-adapter hbe 1.7.0
vscode-test-explorer hbe 2.19.1
classic-asp ili 0.0.4
vscode-nuget-package-manager jmr 1.1.6
csharp ms- 1.22.0
debugger-for-chrome msj 4.12.10
nativescript Tel 0.11.0
subtle-brackets raf 3.0.0
rewrap stk 1.13.0
insert-special-symbol swi 1.3.0
indent-one-space use 0.2.6
html-css-class-completion Zig 1.19.0

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 20 (14 by maintainers)

Commits related to this issue

Most upvoted comments

The bug was that it did not appear selected. I have pushed a fix for that. You only need to rebing explorer.openAndPassFocus if you want to use a custom keybinding.

Yeah. I agree, that seems to be the issue.