Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

View -> Appearance -> Fullscreen still says 'F11' despite F11 key doing otherwise. #147928

Closed
Kerdek opened this issue Apr 22, 2022 · 11 comments
Closed
Assignees
Labels
debug Debug viewlet, configurations, breakpoints, adapter issues wont-fix

Comments

@Kerdek
Copy link

Kerdek commented Apr 22, 2022

Issue Type: Bug

I have no way of knowing exactly what of the 1000s of possible sources of incoming side-effects could contribute to this. The amount of information I can access allows me to be certain that it will be reproducible only where you have my exact system with my exact module set. The F11 key causes a debug session to initiate while I am working on this javascript file while a nodejs package source folder is open in the latest version of vscode downloaded into debian using apt according to the instructions on their wiki.

VS Code version: Code 1.66.2 (dfd34e8, 2022-04-11T07:49:24.808Z)
OS version: Linux x64 5.10.106
Restricted Mode: No

System Info
Item Value
CPUs Intel(R) Core(TM) i7-8700K CPU @ 3.70GHz (12 x 4602)
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
oop_rasterization: disabled_off
opengl: enabled_on
rasterization: disabled_software
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: disabled_software
video_encode: disabled_software
vulkan: disabled_off
webgl: enabled
webgl2: enabled
Load (avg) 1, 1, 1
Memory (System) 15.52GB (9.11GB free)
Process Argv --unity-launch --crash-reporter-id e585ffe9-7db6-45fd-8db9-70a6acc77de2
Screen Reader no
VM 0%
DESKTOP_SESSION gnome
XDG_CURRENT_DESKTOP GNOME
XDG_SESSION_DESKTOP gnome
XDG_SESSION_TYPE x11
Extensions (16)
Extension Author (truncated) Version
language-x86-64-assembly 13x 3.0.0
ebrew-vscode 498 0.1.4
vsc-material-theme Equ 33.4.0
vsc-material-theme-icons equ 2.2.1
customize-ui ioc 0.1.61
monkey-patch ioc 0.1.16
vscode-clangd llv 0.1.15
remote-containers ms- 0.231.6
remote-ssh ms- 0.78.0
remote-ssh-edit ms- 0.80.0
vscode-remote-extensionpack ms- 0.21.0
cmake-tools ms- 1.10.5
cpptools ms- 1.9.8
hexeditor ms- 1.9.6
vscode-typescript-next ms- 4.7.20220421
cmake twx 0.0.17

(2 theme extensions excluded)

A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vstes627cf:30244335
pythonvspyl392:30443607
pythontb:30283811
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
vscoreces:30445986
pythondataviewer:30285071
vscod805:30301674
pythonvspyt200:30340761
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593:30376534
vsc1dst:30438360
pythonvs932:30410667
wslgetstarted:30449410
pythonvsnew555:30457759
vscscmwlcmt:30465135
cppdebug:30475216
vscaat:30438848

@gjsjohnmurray
Copy link
Contributor

By searching for F11 in the Keyboard Shortcuts editor you will see this is bound to the command Debug: Start Debugging and Stop on Entry provided the following when-expression is true:

!inDebugMode && debugConfigurationType == 'node' || !inDebugMode && debugConfigurationType == 'pwa-extensionHost' || !inDebugMode && debugConfigurationType == 'pwa-node'

The display of keybinding text on menu entries doesn't take enough account of when-expressions and multiple bindings to avoid the behaviour your issue title reports.

@weinand
Copy link
Contributor

weinand commented Apr 25, 2022

@weinand weinand closed this as completed Apr 25, 2022
@weinand weinand added wont-fix debug Debug viewlet, configurations, breakpoints, adapter issues labels Apr 25, 2022
@gjsjohnmurray
Copy link
Contributor

@weinand the OP's version info shows Linux rather than macOS.

@weinand
Copy link
Contributor

weinand commented Apr 25, 2022

On linux the following commands are assigned to the F11 key:
CleanShot 2022-04-25 at 15 00 22@2x

So the "Fullscreen" command uses the F11 key on linux (because the "when" clause !isIOS0evaluates to true).
Yes, this is unfortunate, but we will not change this.

You can solve this problem by assigning a different keyboard shortcut (or none at all) to either of the commands.

@weinand
Copy link
Contributor

weinand commented Apr 25, 2022

related issue: #141157

@Kerdek
Copy link
Author

Kerdek commented Apr 26, 2022

It is typical for F11 to fullscreen things. There is nothing surprising or wrong about F11 configuring full screen on linux. That was the expected behavior, weinand.

So why does the menu still put F11 text next to View -> Appearance -> Full Screen if F11 is assigned to something else? Even if node devs are going to get preference here, why lie to everyone else?

@Kerdek
Copy link
Author

Kerdek commented Apr 26, 2022

image

@weinand
Copy link
Contributor

weinand commented Apr 26, 2022

F11 is typically used for debugging as well. So there is a clash.
In VS Code F11 for debugging should only be enabled if the currently selected launch config is of type "node".

@isidorn @connor4312 do you remember the rational behind this?

@gjsjohnmurray
Copy link
Contributor

@Kerdek the misleading menu text is what I previously referred to above.

The display of keybinding text on menu entries doesn't take enough account of when-expressions and multiple bindings...

@isidorn
Copy link
Contributor

isidorn commented Apr 26, 2022

@weinand probably the keybinding enablement of full screen is not dynamic enough and the menu does not pick it up.

@connor4312
Copy link
Member

In VS Code F11 for debugging should only be enabled if the currently selected launch config is of type "node".

That should be the case (and seems to be from the screenshot). It sounds like the enablement isn't quite right. That also seemed like a culprit in #71800, where testing using cmd+h seemed to sometimes permanently start capturing that shortcut (though I have since moved to use a different shortcut in testing)

@github-actions github-actions bot locked and limited conversation to collaborators Jun 9, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
debug Debug viewlet, configurations, breakpoints, adapter issues wont-fix
Projects
None yet
Development

No branches or pull requests

5 participants