Skip to content

macOS: Restore last session when closing window #173667

@danfy

Description

@danfy

Type: Bug

Virtual Studio Code in my Macbook does not reopen my last active session when reopening even with following settings: files.hotExit: "onExit" and window.restoreWindows: "all"

To clarify, VSCode does restore last active session after completely closing the app with command+Q, but not after pressing the red button. When I reopen the app after red button, the app only shows the blank page.

I tried both universal version and arm64 version (1.75 for both), but the problem still exists.

Steps to Reproduce:

  1. Open several tabs to work on.
  2. Close the app with red button (NOT WITH command + Q)
  3. Reopen the app only to see the blank page

VS Code version: Code 1.75.0 (e2816fe, 2023-02-01T15:26:31.005Z)
OS version: Darwin arm64 22.3.0
Modes:
Sandboxed: No

System Info
Item Value
CPUs Apple M2 Pro (12 x 24)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
Load (avg) 2, 4, 5
Memory (System) 16.00GB (2.07GB free)
Process Argv --crash-reporter-id f2e753e7-40fd-4fe7-9563-c476303f0dc1
Screen Reader no
VM 0%
Extensions (8)
Extension Author (truncated) Version
isort ms- 2022.8.0
python ms- 2023.2.0
vscode-pylance ms- 2023.2.10
jupyter ms- 2023.1.2000312134
jupyter-keymap ms- 1.0.0
jupyter-renderers ms- 1.0.14
vscode-jupyter-cell-tags ms- 0.1.6
vscode-jupyter-slideshow ms- 0.1.5
A/B Experiments
vsliv368cf:30146710
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
pythonvspyl392:30443607
vserr242:30382549
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vsdfh931cf:30280410
vshan820:30294714
vstes263:30335439
pythondataviewer:30285071
vscod805:30301674
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
cmake_vspar411:30581797
vsaa593:30376534
pythonvs932:30410667
cppdebug:30492333
vsclangdc:30486549
c4g48928:30535728
dsvsc012:30540252
azure-dev_surveyone:30548225
pyindex848:30577860
nodejswelcome1:30587005
2e4cg342:30602488
pyind779:30657576
f6dab269:30613381
pythonsymbol12cf:30657549
a9j8j154:30646983

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature-requestRequest for new features or functionalityworkbench-stateUI state across restarts

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions