Skip to content

VSCode instances all open in the same Windows Desktop after an update/restart #319435

Duplicate

Description

Description

When my computer updates, VSCode windows do not remember the desktop there were in before the reboot.

I usually have 8+ VSCode instances, and on every update I need to re-organize them in my multiple desktops, since they all open in the same one after an update. It would be great to add this enhancement.

Issue Details

Item Value
Issue Category Feature Request
Target Visual Studio Code
VS Code Version Code 1.122.1 (8761a55, 2026-05-29T09:25:37+02:00)
OS Version Windows_NT x64 10.0.26220

Additional Issue Data

issue-data.md

Activity

  1. added
    workbench-os-integration
    and removed
    workbench-os-integration
    on Jun 9, 2026
  2. added
    feature-request
    on Jun 9, 2026
  3. vs-code-engineering commented on Jun 9, 2026

    @vs-code-engineering
    Contributor

    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!

  4. vs-code-engineering commented on Jul 30, 2026

    @vs-code-engineering
    Contributor

    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!

  5. vs-code-engineering commented on Aug 10, 2026

    @vs-code-engineering
    Contributor

    🙁 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!

  6. dmitrivMS commented on Aug 10, 2026

    @dmitrivMS
    Collaborator

    Filiberto Fuentes (@fifuente) Could you please try the following:

    1. Run Preferences: Configure Runtime Arguments command
    2. In the argv.json add the following sett: "enable-rdp-display-tracking": true

    Please let me know if this fixes the issue for you.

  7. added
    windows
    workbench-os-integration
    on Aug 10, 2026
  8. dmitrivMS commented on Aug 10, 2026

    @dmitrivMS
    Collaborator
  9. dimy-osman commented on Aug 23, 2026

    @dimy-osman

    Same problem here on Windows 11, and it also hits Cursor (VS Code fork).

    I keep multiple editor windows on separate virtual desktops. After a restart or an update, every previously open window is dumped onto whichever desktop is currently active. I then have to put them all back by hand.

    This is not a Windows limitation. Brave / Chrome / Edge restore each window to the desktop it was on. Chromium already does this with IVirtualDesktopManager (GetWindowDesktopId on save, MoveWindowToDesktop on restore). VS Code / Electron only persist size, position, and which folders were open, so the recreated windows all spawn on the current desktop.

    Related:

    enable-rdp-display-tracking looks like RDP/display tracking, not virtual-desktop restore. I can try it, but I would not expect it to put windows back on specific desktops.

    Please keep this open and do not close it on the 20-upvote timer again. This has been reported for years and still happens after every restart/update.

  10. dmitrivMS commented on Nov 24, 2026

    @dmitrivMS
    Collaborator

    🤖 Thanks for the report. This is already tracked in #152869, whose original report describes the same behavior: windows distributed across Windows virtual desktops all reopen on the current desktop after restarting. Your Windows 11 scenario with eight or more windows after updates or reboots adds useful context to that request. The suggested enable-rdp-display-tracking option handles monitor placement during RDP reconnection, not virtual-desktop restoration.

    /duplicate of #152869

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

feature-requestwindowsworkbench-os-integration

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions