Skip to content

Code crashing when closing an unsaved file #322101

Description

@victordevcheina-cloud

Type: Bug

Create a new file with Ctrl+N. Write anything in the file. Try closing the file before saving it. Instead of openning the window asking "Do you want to save the changes you made to <name of the file>?", the VS Code crashes and closes. It only doesn't crash when running with --ozone-platform=x11.

It started happening in version 1.107.0.
And until version 1.123, it would crash before openning any window (for example trying to open a file with Ctrl+O).

Already tried to disable all my extensions and it still doesn't work properly.

VS Code version: Code 1.125.1 (fcf6047, 2026-06-19T08:39:34Z)
OS version: Linux x64 5.10.0-35-amd64
Modes:

System Info
Item Value
CPUs Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz (8 x 3392)
GPU Status 2d_canvas: enabled
GPU0: VENDOR= 0x8086 [Google Inc. (Intel Open Source Technology Center)], DEVICE=0x0412 [ANGLE (Intel Open Source Technology Center, Mesa DRI Intel(R) HD Graphics 4600 (HSW GT2), OpenGL 4.5 (Core Profile) Mesa 20.3.5)], DRIVER_VENDOR=Mesa, DRIVER_VERSION=20.3.5 ACTIVE
Machine model name:
Machine model version:
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
trees_in_viz: disabled_off
video_decode: enabled
video_encode: disabled_software
vulkan: disabled_off
webgl: enabled
webgpu: enabled
webgpu_on_vk_via_gl_interop: disabled_off
webnn: disabled_off
Load (avg) 11, 4, 2
Memory (System) 15.54GB (5.40GB free)
Process Argv --ozone-platform=x11 --crash-reporter-id 40d36724-c2d7-4667-8829-d9c9b78538a8
Screen Reader no
VM 0%
DESKTOP_SESSION gnome
XDG_CURRENT_DESKTOP GNOME
XDG_SESSION_DESKTOP gnome
XDG_SESSION_TYPE wayland
Extensions (29)
Name Identifier Author Version
SQL Formatter adpyke.vscode-sql-formatter adpyke 1.4.4
Angular Language Service angular.ng-template Angular 22.0.1
PHP Intelephense bmewburn.vscode-intelephense-client bmewburn 1.18.4
ESLint dbaeumer.vscode-eslint dbaeumer 3.0.24
XML Tools dotjoshjohnson.xml DotJoshJohnson 2.5.1
GitLens — Git supercharged eamodio.gitlens eamodio 18.2.0
Git History Diff huizhou.githd huizhou 2.5.7
Edit CSV janisdd.vscode-edit-csv janisdd 0.11.9
Angular File Changer (Supporting Touch Bar and NgRx) john-crowson.angular-file-changer john-crowson 0.0.4
php cs fixer junstyle.php-cs-fixer junstyle 0.3.21
JSON to CSV khaeransori.json2csv khaeransori 1.0.0
Rainbow CSV mechatroner.rainbow-csv mechatroner 3.24.1
Git Graph mhutchie.git-graph mhutchie 1.30.0
Python Debugger ms-python.debugpy ms-python 2026.6.0
isort ms-python.isort ms-python 2026.6.0
Python ms-python.python ms-python 2026.4.0
Pylance ms-python.vscode-pylance ms-python 2026.2.1
Python Environments ms-python.vscode-python-envs ms-python 1.36.0
Jupyter ms-toolsai.jupyter ms-toolsai 2025.9.1
Jupyter Keymap ms-toolsai.jupyter-keymap ms-toolsai 1.1.2
Jupyter Notebook Renderers ms-toolsai.jupyter-renderers ms-toolsai 1.3.0
Jupyter Cell Tags ms-toolsai.vscode-jupyter-cell-tags ms-toolsai 0.1.9
Jupyter Slide Show ms-toolsai.vscode-jupyter-slideshow ms-toolsai 0.1.6
VS Sequential Number neptunedesign.vs-sequential-number neptunedesign 1.1.0
Document This oouo-diogo-perdigao.docthis oouo-diogo-perdigao 0.8.2
CSV to Table phplasma.csv-to-table phplasma 1.4.1
Sass (.sass only) syler.sass-indented syler 1.8.33
PHP Debug xdebug.php-debug xdebug 1.40.1
PHP Extension Pack xdebug.php-pack xdebug 1.0.3
A/B Experiments
vsliv368:30146709
binariesv615:30325510
nativeloc1:31344060
dwcopilot:31170013
dwoutputs:31242946
copilot_t_ci:31333650
e5gg6876:31282496
pythonrdcb7:31342333
6518g693:31463988
aj953862:31281341
6abeh943:31336334
envsactivate1:31505457
cloudbuttont:31379625
3efgi100_wstrepl:31403338
ec5jj548:31422691
cp_cls_t_966_ss:31526232
4je02754:31466945
8hhj4413:31478653
38bie571_auto:31426784
cp_cls_c_1081:31454833
conptydll_true:31498968
ia-use-proxy-models-svc:31452481
e9c30283:31461165
test_treatment2:31471001
c9b86496:31447327
idci7584:31464702
e3e4d672:31494082
ei9d7968:31496641
chat:31457767
8hig5102:31480529
raptor_a8ebf963:31533909
89g7j272:31518289
7e187181:31503455
i2gc6536:31499202
52612955:31516516
ghj88844:31499326
23c7c724:31520045
ddid_c:31478207
hmra_i5g22:31518061
7df3h592:31512476
cp_cls_t_1082:31535311
logging_enabled_new:31498466
j0d79568:31499440
nes-extended-cfe-himalia-004:31500446
jb_cp_cls_t_632:31524805
852d2892:31506239
56dj4588:31512888
32d76977:31512328
ha629193:31508444
cdk-lw-on:31524445
31fi7170_t:31522396
a1ije391_t:31534743
jbcp_cls_pctr_t:31531130
61138546:31518536
cp_intellij_t_nes:31533504
jf4hg949:31526829
nes-curr-leftover-1000:31530976
h561g132:31533256
sessions_3:31532893
ihg5j128:31534457

Metadata

Metadata

Assignees

Labels

new releaseIssues found in a recent release of VS Code

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions