Repository navigation
Description
Issue Type: Bug
I want to create a new file/folder with the the name copied elsewhere. So I right-click the explorer, select "new ...", then try right-click in the box that expect to enter a name.
expected behaviour: right-click menu opens with copy/paste options in it.
current behaviour: right-click cancels the operation and then opens the explorer menu for currently selected file.
PS: copy-paste works from keyboard but in cases right-click is is a faster action to take, this slows down productivity.
PS: title is already long, but I have found that trying to rename an existing file/folder by copy/paste from right-click also does this same bug. right-click into the box just cancels the operation and opens menu for active file/folder
I have tested many older versions of VS, so apparently the problem has started somewhere in summer to fall of 2018. (all windows zip versions set portable by "data" folder in extracted folder)
v1.20.0: context menu opens for copy/paste correctly
v1.28.0: context menu opens but the action is cancelled while the context menu stays on the screen.
v1.38.1: context menu opens for a very short time (less than a second) and closes along with cancelling the action
v1.49.3: right-click cancels the action and opens a context menu for the file/folder already selected before the action.
v1.57.0 and v 1.59.0 are the same as v1.49.3
VS Code version: Code 1.57.0 (b4c1bd0, 2021-06-09T17:18:42.354Z)
OS version: Windows_NT x64 10.0.19043
Restricted Mode: No
System Info
| Item | Value |
|---|---|
| CPUs | Intel(R) Core(TM) i7-2630QM CPU @ 2.00GHz (8 x 1995) |
| GPU Status | 2d_canvas: enabled gpu_compositing: enabled multiple_raster_threads: enabled_on oop_rasterization: unavailable_off opengl: enabled_on rasterization: unavailable_off skia_renderer: enabled_on video_decode: enabled vulkan: disabled_off webgl: enabled webgl2: enabled |
| Load (avg) | undefined |
| Memory (System) | 7.91GB (2.94GB free) |
| Process Argv | . --crash-reporter-id 584324ec-9312-4a21-82cb-89491f399328 |
| Screen Reader | no |
| VM | 0% |
Extensions (14)
| Extension | Author (truncated) | Version |
|---|---|---|
| dart-code | Dar | 3.25.1 |
| flutter | Dar | 3.25.0 |
| prettier-vscode | esb | 8.1.0 |
| vs-code-http-server-and-html-preview | Fli | 2.2.2 |
| vscode-jsonp | luy | 1.0.1 |
| js-interactive | Moh | 1.1.11 |
| csharp | ms- | 1.23.13 |
| python | ms- | 2021.8.1105858891 |
| vscode-pylance | ms- | 2021.8.0 |
| jupyter | ms- | 2021.6.999662501 |
| cpptools | ms- | 1.5.1 |
| vetur | oct | 0.34.1 |
| material-icon-theme | PKi | 4.9.0 |
| vscode-npm-scripts | tra | 0.2.1 |
A/B Experiments
vsliv368cf:30146710
vsreu685:30147344
python383cf:30185419
pythonvspyt602:30300191
vspor879:30202332
vspor708:30202333
vspor363:30204092
pythonvspyt639:30300192
pythontb:30283811
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
pythondataviewer:30285071
pythonvsuse255:30340121
vscod805cf:30301675
pythonvspyt200:30340761
vscextlang:30333561
binariesv615:30325510
vsccppwtct:30329789
pythonvssor306:30344512
bridge0708:30335490
vstre464:30350172
Activity
vscodebot commentedon Aug 11, 2021
(Experimental duplicate detection)
Thanks for submitting this issue. Please also check if it is already covered by an existing one, like:
IllusionMH commentedon Aug 11, 2021
Better to report issue with latest version of stable release which is 1.59 now.
Anyway it's still reproducible in 1.60-insiders and my guess it's happens because context menu "steals" focus from tree.
Can be reproduced with any action that would show context menu: right click, Shift+F10, Menu key
isidorn commentedon Aug 11, 2021
There are already issues for the context menu and the tree, thus closing as duplicate since I think this is covered by those issues. To find them search for context menu and focus
yilmazdurmaz commentedon Aug 11, 2021
Isidor Nikolic (@isidorn) It is how awesome you decided so quickly to close the issue just because you "think" it is covered elsewhere. proud of you.
If it was really a duplicate somewhere, do you think I would still write this post?
you are right there are hundreds of context menu focus posts. but none seems to point a problem about creating new files/folders, along with right mouse clicks.
anyways, I have tested many older versions of VS, so apparently the problem has started somewhere in summer to fall of 2018. (all windows zip versions set portable by "data" folder in extracted folder)
v1.20.0: context menu opens for copy/paste correctly
v1.28.0: context menu opens but the action is cancelled while the context menu stays on the screen.
v1.38.1: context menu opens for a very short time (less than a second) and closes along with cancelling the action
v1.49.3: right-click cancels the action and opens a context menu for the file/folder already selected before the action.
v1.57.0 and v 1.59.0 are the same as v1.49.3
now, please re-open the issue, remove the duplicate tag and let's hope for a fix for this 3-years old shapeshifting problem.
yilmazdurmaz commentedon Aug 17, 2021
Isidor Nikolic (@isidorn) what does an "is:issue is:open" in search box mean to you? if you use "is:issue is:open context menu focus" you will get only 67 open issues right now. and none of them, other than the one opened yesterday, reports this bug.
and if no issue was posted before this that is still active then that means there cannot be any other "solved" ones to make this post a duplicate because the issue has been present for the last 2 years.
so why do you still hesitate to reopen it?
fix(list): 🐛 list/tree should show focus outline while context menu i…
allow context menu in file explorer rename widget
joaomoreno commentedon Dec 23, 2022
Yılmaz Durmaz (@yilmazdurmaz), thanks for the patience here. This fix will soon land in Insiders and in the next Stable:
allow context menu in file explorer rename widget (#169931)