Skip to content

Cannot toggle windows on Mac #68217

Closed
Closed

Description

Issue Type: Bug

Normally on MacOS, you can toggle between two windows of the same app with ⌘ + ` (Cmd + backtick). I have verified that this works in other apps installed on my machine (eg Chrome). This used to work in VS Code, but has stopped working very recently (within the last few days). I've checked my keyboard mapping, and the only commands involving a backtick use Ctrl (not Cmd). I've also tried this with all extensions disabled.

To reproduce:

  1. Open VS Code
  2. Open a second VS Code Window (Cmd + Shift + N)
  3. Try to toggle using Cmd + Backtick
  4. I now expect to be in the first window I opened, but I'm not

VS Code version: Code 1.31.0 (7c66f58, 2019-02-05T22:32:14.164Z)
OS version: Darwin x64 17.7.0

System Info
Item Value
CPUs Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz (8 x 4201)
GPU Status 2d_canvas: enabled
checker_imaging: disabled_off
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: enabled
rasterization: unavailable_off
surface_synchronization: enabled_on
video_decode: enabled
webgl: enabled
webgl2: enabled
Load (avg) 3, 2, 2
Memory (System) 16.00GB (1.21GB free)
Process Argv
Screen Reader no
VM 0%
Extensions (29)
Extension Author (truncated) Version
color-info bie 0.5.0
path-intellisense chr 1.4.2
vscode-eslint dba 1.8.0
javascript-ejs-support Dig 0.4.1
githistory don 0.4.6
gitlens eam 9.5.0
tslint eg2 1.0.42
vsc-material-theme Equ 2.6.3
auto-close-tag for 0.5.6
auto-rename-tag for 0.0.15
macros ged 1.2.1
latex-workshop Jam 5.21.0
intellij-idea-keybindings k-- 0.2.31
wordcounter kir 1.4.0
rainbow-csv mec 1.0.0
dotenv mik 1.0.1
python ms- 2019.1.0
vscode-jest Ort 2.9.2
vscode-docker Pet 0.5.2
livescript pse 0.1.1
gitlink qez 0.4.5
ruby reb 0.21.0
code-settings-sync Sha 3.2.4
vscode-zipexplorer sle 0.3.1
autoimport ste 1.5.3
rewrap stk 1.9.1
code-spell-checker str 1.6.10
vscode-todo-highlight way 1.0.4
markdown-all-in-one yzh 2.0.1

Activity

  1. added
    regression
    on Feb 8, 2019
  2. added
    help wanted
    on Feb 8, 2019
  3. bpasero commented on Feb 8, 2019

    @bpasero
    Contributor

    Open for help if someone can investigate.

  4. bpasero commented on Feb 9, 2019

    @bpasero
    Contributor

    I just tried to reproduce and I cannot, it still seems to work the same for me.

    before

    Alec Gibson (@alecgibson) are you on a US keyboard layout?

  5. added
    info-needed
    and removed
    help wanted
    regression
    on Feb 9, 2019
  6. alecgibson commented on Feb 9, 2019

    @alecgibson
    Author

    Interestingly on my Macbook (as opposed to my Mac), this works fine. Macbook is on Mojave, whereas the Mac is on High Sierra (don't know if that matters).

    The Mac (where this doesn't work) is using a USB keyboard on a custom keyboard layout, but I don't see why that would matter. I've sense-checked that the key I'm pressing does indeed produce a backtick (especially because I used that keyboard to write the original bug report).

  7. alecgibson commented on Feb 9, 2019

    @alecgibson
    Author

    Specs for my Macbook, where this isn't an issue:

    VS Code version: Code 1.31.0 (7c66f58, 2019-02-05T22:32:14.164Z)
    OS version: Darwin x64 18.2.0

    System Info
    Item Value
    CPUs Intel(R) Core(TM) i7-7567U CPU @ 3.50GHz (4 x 3500)
    GPU Status 2d_canvas: enabled
    checker_imaging: disabled_off
    flash_3d: enabled
    flash_stage3d: enabled
    flash_stage3d_baseline: enabled
    gpu_compositing: enabled
    multiple_raster_threads: enabled_on
    native_gpu_memory_buffers: enabled
    rasterization: enabled
    surface_synchronization: enabled_on
    video_decode: enabled
    webgl: enabled
    webgl2: enabled
    Load (avg) 2, 2, 3
    Memory (System) 16.00GB (4.61GB free)
    Process Argv
    Screen Reader no
    VM 0%
    Extensions (29)
    Extension Author (truncated) Version
    color-info bie 0.5.0
    path-intellisense chr 1.4.2
    vscode-eslint dba 1.8.0
    javascript-ejs-support Dig 0.4.1
    githistory don 0.4.6
    gitlens eam 9.5.0
    tslint eg2 1.0.42
    vsc-material-theme Equ 2.6.3
    auto-close-tag for 0.5.6
    auto-rename-tag for 0.0.15
    macros ged 1.2.1
    latex-workshop Jam 5.21.0
    intellij-idea-keybindings k-- 0.2.31
    wordcounter kir 1.4.0
    rainbow-csv mec 1.0.0
    dotenv mik 1.0.1
    python ms- 2019.1.0
    vscode-jest Ort 2.9.2
    vscode-docker Pet 0.5.2
    livescript pse 0.1.1
    gitlink qez 0.4.5
    ruby reb 0.21.0
    code-settings-sync Sha 3.2.4
    vscode-zipexplorer sle 0.3.1
    autoimport ste 1.5.3
    rewrap stk 1.9.1
    code-spell-checker str 1.6.10
    vscode-todo-highlight way 1.0.4
    markdown-all-in-one yzh 2.0.1
  8. bpasero commented on Feb 9, 2019

    @bpasero
    Contributor

    Weird, thanks for testing. I am not sure what this is, adding Alex.

  9. 10 remaining items

  10. jarlefosen commented on Feb 17, 2019

    @jarlefosen

    I am also experiencing this issue, no more cycling through VS Code windows.
    For me I noticed the issue about a week or so ago. It started after upgrading to VS Code 1.31 on my Macbook Pro running Mojave.

    I've tried changing the "input sources" on the Mac to British, British - PC and US without any luck. Downloading and running the v1.30 fixes the issue, so for me this issue seems isolated to v1.31.

    • Macbook Pro Retina 15" mid 2015, running macOS Mojave
    • Norwegian keyboard layout
    • English US system language

    Registering the shortcut as a special VSCode command works in both 1.30 and 1.31, they are being triggered when trying to cycle window, and prevents the window from being cycled. When removing the special command the v1.30 will default to letting macOS do window cycling while on v1.31 nothing happens at all.

  11. bpasero commented on Feb 18, 2019

    @bpasero
    Contributor

    We are building exploration builds that use a much newer version of our UI framework (Electron version 4.0.x). I wonder if this issue reproduces with one of these builds, could you try? Download:

  12. alecgibson commented on Feb 18, 2019

    @alecgibson
    Author

    Benjamin Pasero (@bpasero) I've tried the macOS app you've provided, but this seems to act even worse it still doesn't work:

    • "British - PC": duplicates the current tab into a split pane
    • "British": does nothing works
    • "US": does nothing works

    Edit: Sorry, had a brain burp and forgot the keyboard layouts would move the backtick key. This time I validated I had the right key by typing with it, and then used Cmd + ` to check behaviour. Findings are basically the same as for the version built on Electron 3, but with slightly weirder behaviour on the "British - PC" layout.

  13. bruun commented on Feb 18, 2019

    @bruun

    I tried it with Norwegian keyboard layout as reported earlier, same issue in the exploration build.

  14. clarkie commented on Mar 5, 2019

    @clarkie

    Not sure if it helps but I'm having the same problem with the osx slack app.

  15. added
    upstream
    electron
    on Mar 5, 2019
  16. tobycurl commented on Mar 7, 2019

    @tobycurl

    Clarkie (@clarkie) how do you get multiple windows in Slack to test this?

  17. clarkie commented on Mar 7, 2019

    @clarkie

    Toby Curl (@tobycurl) If you open up a new "post". In fact I think that's the only way to get a new window open 😄

  18. tobycurl commented on Mar 7, 2019

    @tobycurl

    Clarkie (@clarkie) thanks! (Managed to find it eventually!) It does seem to show the same issue on “British - PC” but works on “British”.

  19. alecgibson commented on Mar 7, 2019

    @alecgibson
    Author

    Do we need to raise an issue on Electron, then? I'm not that familiar with Electron; is anyone able to put together a set of reproducible steps for raising an issue there?

  20. alecgibson commented on Mar 8, 2019

    @alecgibson
    Author

    Okay. I did a little bit of digging. This is definitely an Electron issue - I put together a minimal working example. Raised an issue on Electron: electron/electron#17287

    I guess we can probably close this here.

  21. locked and limited conversation to collaborators on Apr 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

electroninfo-neededmacosupstream

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions