Relaunching VSCode forgets what macOS Desktop each window belongs to
See original GitHub issueIssue Type: Bug
For native macOS apps, if I have windows spread across multiple Mission Control Desktops, quitting and relaunching the app restores the windows to the appropriate desktop. VSCode does not do this. Instead it displays all restored windows on the current desktop. This is very annoying since I’m using desktops to manage different workspaces (e.g. one project per desktop, with all associated files and windows), so every time I have to relaunch VSCode I have to manually drag each window back to the appropriate desktop.
VS Code version: Code 1.56.0 (Universal) (cfa2e218100323074ac1948c885448fdf4de2a7f, 2021-05-04T22:06:21.189Z) OS version: Darwin x64 20.3.0
System Info
Item | Value |
---|---|
CPUs | Intel® Core™ i7-6820HQ CPU @ 2.70GHz (8 x 2700) |
GPU Status | 2d_canvas: enabled gpu_compositing: enabled metal: disabled_off multiple_raster_threads: enabled_on oop_rasterization: enabled opengl: enabled_on rasterization: enabled skia_renderer: disabled_off_ok video_decode: enabled webgl: enabled webgl2: enabled |
Load (avg) | 35, 10, 6 |
Memory (System) | 16.00GB (0.18GB free) |
Process Argv | –crash-reporter-id 9e084c31-c5e0-4ce9-9608-5534964bf050 |
Screen Reader | no |
VM | 0% |
Extensions (52)
Extension | Author (truncated) | Version |
---|---|---|
vscode-sievehighlight | adz | 1.0.2 |
vscode-icalendar | af4 | 1.0.1 |
Bookmarks | ale | 13.0.4 |
project-manager | ale | 12.1.0 |
ascii-tree-generator | apr | 1.2.4 |
troff | ban | 1.0.22 |
Nix | bbe | 1.0.1 |
vagrant | bbe | 0.5.0 |
vscode-fish | bma | 1.0.21 |
better-toml | bun | 0.3.2 |
vscode-modelines | chr | 2.0.5 |
bracket-select | chu | 2.0.2 |
bracket-pair-colorizer-2 | Coe | 0.2.0 |
viml | dun | 0.1.7 |
gitlens | eam | 11.4.1 |
EditorConfig | Edi | 0.16.4 |
tslint | eg2 | 1.0.46 |
vscode-todo-plus | fab | 4.18.3 |
lex-flex-yacc-bison | fau | 0.0.3 |
vscode-pull-request-github | Git | 0.26.0 |
vscode-graphql | Gra | 0.3.16 |
beautify | Hoo | 1.5.0 |
jenkinsfile-support | ivo | 1.1.0 |
language-haskell | jus | 3.4.0 |
swift | Kas | 0.2.0 |
nim | kos | 0.6.6 |
vscode-fix-checksums | leh | 1.1.0 |
colonize | lil | 0.0.1 |
autoconf | mae | 0.1.0 |
gluon | Mar | 0.3.0 |
rust-analyzer | mat | 0.2.591 |
vscode-elixir | mjm | 1.1.0 |
python | ms- | 2021.5.829140558 |
vscode-pylance | ms- | 2021.5.1 |
jupyter | ms- | 2021.6.811652604 |
remote-ssh | ms- | 0.65.4 |
remote-ssh-edit | ms- | 0.65.4 |
cpptools | ms- | 1.3.1 |
vscode-ios-common-files | Ort | 1.0.5 |
synthwave-vscode | Rob | 0.1.8 |
llvm | RRe | 0.1.1 |
perl6-lsp | scr | 0.3.0 |
code-settings-sync | Sha | 3.4.3 |
tcl | sle | 0.2.0 |
ascii-plist | spe | 1.0.3 |
rewrap | stk | 1.14.0 |
shellcheck | tim | 0.14.1 |
jest-snapshot-language-support | tle | 1.1.1 |
cmake | twx | 0.0.17 |
vscode-terminal-here | Tyr | 0.2.4 |
tmlanguage | Tog | 0.9.1 |
FilterText | yhi | 0.0.15 |
A/B Experiments
vsliv368cf:30146710
vsreu685:30147344
python383:30185418
vspyt653:30270858
pythonvspyt602:30300191
vspor879:30202332
vspor708:30202333
vspor363:30204092
pythonvspyt639:30300192
pythontb:30283811
vspre833cf:30267465
pythonptprofiler:30281270
vshan820:30294714
vscorecescf:30290706
pythondataviewer:30285071
vscus158:30286553
Issue Analytics
- State:
- Created 2 years ago
- Reactions:25
- Comments:6 (1 by maintainers)
Top Results From Across the Web
VSCode does not preserve original virtual desktop placement ...
Create multiple virtual desktops; Open a vscode instance in each virtual desktop; Update vscode such that it restarts. Expected: All reloaded ...
Read more >February 2021 (version 1.54) - Visual Studio Code
We've tweaked this to automatically relaunch terminals that have stale environments when they have not yet been interacted with. This may result in...
Read more >Settings Sync in Visual Studio Code
Synchronize your user settings across all your Visual Studio Code instances.
Read more >Visual Studio Code User Interface
Each time you start VS Code, it opens up in the same state it was in when you last closed it. The folder,...
Read more >Running Visual Studio Code on macOS
If you are running macOS Mojave version, you may see dialogs saying "Visual Studio Code would like to access your {calendar/contacts/photos}." This is...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I don’t believe this is covered by #116358. Beyond the fact that that issues is for Windows and this is for macOS, that issue was also considered a feature, whereas I firmly believe the macOS issue is a bug, as restoring to the correct desktop is a standard platform convention when restoring app windows.
🙂 This feature request received a sufficient number of community upvotes and we moved it to our backlog. To learn more about how we handle feature requests, please see our documentation.
Happy Coding!