Skip to content

VSCode does not preserve original virtual desktop placement when restoring windows (Windows, macOS) #88257

Closed

Description

@cdmihai

Issue Type: Bug

Repro:

  1. Create multiple virtual desktops
  2. Open a vscode instance in each virtual desktop
  3. Update vscode such that it restarts

Expected: All reloaded instances after the restart are placed in their original virtual desktop
Actual: All reloaded instances are placed in the current virtual desktop

This is quite annoying as I have multiple repos opened in multiple virtual desktops. After each vscode restart I have to waste a minute or two figuring out which virtual desktop to move each vscode instance to

VS Code version: Code 1.41.1 (26076a4, 2019-12-18T14:58:56.166Z)
OS version: Windows_NT x64 10.0.18363

System Info
Item Value
CPUs Intel(R) Xeon(R) CPU E5-1650 v3 @ 3.50GHz (12 x 3492)
GPU Status 2d_canvas: enabled
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
protected_video_decode: unavailable_off
rasterization: enabled
skia_renderer: disabled_off
surface_control: disabled_off
surface_synchronization: enabled_on
video_decode: enabled
viz_display_compositor: enabled_on
viz_hit_test_surface_layer: disabled_off
webgl: enabled
webgl2: enabled
Load (avg) undefined
Memory (System) 31.90GB (9.30GB free)
Process Argv
Screen Reader no
VM 0%
Extensions (18)
Extension Author (truncated) Version
spellright ban 3.0.48
dscript Bui 0.1.38015
githistory don 0.4.13
xml Dot 2.5.0
vscode-archiver ecm 0.0.27
EditorConfig Edi 0.14.4
graphviz-preview EFa 1.3.3
gc-excelviewer Gra 2.1.32
buildxlscript Mic 0.1.0-devBuild
remote-wsl ms- 0.41.7
cpptools ms- 0.26.2
csharp ms- 1.21.9
powershell ms- 2019.12.0
dot Ste 0.0.1
spellchecker swy 1.2.13
zip-file-system Tom 1.0.0
markdown-all-in-one yzh 2.6.1
vscode-proto3 zxh 0.4.0

Activity

  1. bpasero commented on Jan 8, 2020

    @bpasero
    Contributor

    A couple of related issues here: https://github.com/microsoft/vscode/issues?q=is%3Aissue+label%3Aworkbench-os-integration+virtual+is%3Aclosed

    We need Electron API to support this. I encourage you to ask for this API in https://github.com/electron/electron/issues so that we can link back the issue here.

    Bottom line: as far as I know when opening a window in Electron I can only give it a size and position but I cannot restore virtual desktops, nor find out about them. If someone has ideas, please speak up.

  2. added
    feature-request
    workbench-os-integration
    on Jan 8, 2020
  3. added
    upstream
    on Jan 8, 2020
  4. changed the title [-]After update restart, all vscode instances reload in the current virtual desktop instead of their initial virtual desktops[/-] [+]Support to restore VSCode to virtual desktops[/+] on Jan 8, 2020
  5. cdmihai commented on Jan 9, 2020

    @cdmihai
    Author

    It seems such an issue already exists: electron/electron#5362

  6. changed the title [-]Support to restore VSCode to virtual desktops[/-] [+]VSCode does not preserve original virtual desktop placement when restoring all windows[/+] on Jan 9, 2020
  7. changed the title [-]VSCode does not preserve original virtual desktop placement when restoring all windows[/-] [+]VSCode does not preserve original virtual desktop placement when restoring windows[/+] on Jan 9, 2020
  8. added
    upstream-issue-linked
    on Jan 10, 2020
  9. vscodebot commented on Jan 15, 2020

    @vscodebot

    This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.

    Happy Coding!

  10. vscodebot commented on Mar 6, 2020

    @vscodebot

    This feature request has not yet received the 20 community upvotes it takes to make to our backlog. 10 days to go. To learn more about how we handle feature requests, please see our documentation.

    Happy Coding

  11. changed the title [-]VSCode does not preserve original virtual desktop placement when restoring windows[/-] [+]VSCode does not preserve original virtual desktop placement when restoring windows (Windows, macOS)[/+] on Mar 13, 2020
  12. vscodebot commented on Mar 16, 2020

    @vscodebot

    🙁 In the last 60 days, this feature request has received less than 20 community upvotes and we closed it. Still a big Thank You to you for taking the time to create this issue! To learn more about how we handle feature requests, please see our documentation.

    Happy Coding!

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature-requestupstreamupstream-issue-linkedworkbench-electronworkbench-os-integration

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions