Skip to content

App closes when i try to close a file #318986

@ericjanofski

Description

@ericjanofski

Type: Bug

On a mac when i have VS Code open i typically have the left column as files explorer, a center col with an open file and a right column with claude or codex.

If i have a single open file in the center and i hit command+w on the keyboard it doesn't just close the file it closes the entire window. This disrupts my agentic flow and is very frustrating. I'm opening and closing files ocnstant. hitting command+w should never just end the whole working session!

VS Code version: Code 1.122.0 (Universal) (6a49527, 2026-05-27T14:03:01-07:00)
OS version: Darwin arm64 24.6.0
Modes:

System Info
Item Value
CPUs Apple M2 Max (12 x 2400)
GPU Status 2d_canvas: enabled
GPU0: VENDOR= 0x106b [Google Inc. (Apple)], DEVICE=0x0000 [ANGLE (Apple, ANGLE Metal Renderer: Apple M2 Max, Version 15.7.7 (Build 24G720))], DRIVER_VENDOR=Apple, DRIVER_VERSION=15.7.7 ACTIVE
Machine model name: Mac
Machine model version: 14.5
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: enabled_on
trees_in_viz: disabled_off
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
Load (avg) 2, 2, 2
Memory (System) 64.00GB (9.00GB free)
Process Argv --crash-reporter-id 8da8093c-0346-4d35-9103-9d0ec9180851
Screen Reader no
VM 0%
Extensions (43)
Name Identifier Author Version
Alpine.js IntelliSense adrianwilczynski.alpine-js-intellisense adrianwilczynski 1.2.0
Laravel Extra Intellisense amiralizadeh9480.laravel-extra-intellisense amiralizadeh9480 0.7.2
ACF-Snippet anthonydiametrix.acf-snippet anthonydiametrix 1.9.0
Claude Code for VS Code anthropic.claude-code Anthropic 2.1.156
PHP Intelephense bmewburn.vscode-intelephense-client bmewburn 1.18.4
Tailwind CSS IntelliSense bradlc.vscode-tailwindcss bradlc 0.14.29
Livewire Language Support cierra.livewire-vscode cierra 0.2.8
Laravel Goto Controller ctf0.laravel-goto-controller ctf0 0.6.9
Docker DX docker.docker docker 0.18.0
ES7+ React/Redux/React-Native snippets dsznajder.es7-react-js-snippets dsznajder 4.4.3
EditorConfig editorconfig.editorconfig EditorConfig 0.18.2
Prettier - Code formatter esbenp.prettier-vscode esbenp 12.4.0
Laravel Create View glitchbl.laravel-create-view glitchbl 0.0.6
Backpack for Laravel 3.6 Snippets helloenjoi.backpack-snippets helloenjoi 1.0.2
Laravel Blade Wrapper ihunte.laravel-blade-wrapper IHunte 1.0.2
Laravel laravel.vscode-laravel laravel 1.7.0
Rainbow CSV mechatroner.rainbow-csv mechatroner 3.24.1
PHP Namespace Resolver mehedidracula.php-namespace-resolver MehediDracula 2.1.3
DotENV mikestead.dotenv mikestead 1.0.1
laravel intellisense mohamedbenhida.laravel-intellisense mohamedbenhida 0.4.0
Container Tools ms-azuretools.vscode-containers ms-azuretools 2.4.5
Docker ms-azuretools.vscode-docker ms-azuretools 2.0.0
Python Debugger ms-python.debugpy 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.30.0
Dev Containers ms-vscode-remote.remote-containers ms-vscode-remote 0.459.0
Remote - SSH ms-vscode-remote.remote-ssh ms-vscode-remote 0.123.0
Remote - SSH: Editing Configuration Files ms-vscode-remote.remote-ssh-edit ms-vscode-remote 0.87.0
Remote Explorer ms-vscode.remote-explorer ms-vscode 0.5.0
Composer Intelephense muath-ye.composer-intelephense muath-ye 1.0.1
laravel-goto-components naoray.laravel-goto-components naoray 1.2.0
SFTP natizyskunk.sftp Natizyskunk 1.16.3
Laravel Blade Snippets onecentlin.laravel-blade onecentlin 1.38.0
Laravel Extension Pack onecentlin.laravel-extension-pack onecentlin 1.3.0
Laravel Snippets onecentlin.laravel5-snippets onecentlin 1.19.1
Codex – OpenAI’s coding agent openai.chatgpt openai 26.519.32039
laravel-jump-controller pgl.laravel-jump-controller pgl 0.0.34
Laravel Artisan ryannaddy.laravel-artisan ryannaddy 0.0.33
Markdown Preview Enhanced shd101wyy.markdown-preview-enhanced shd101wyy 0.8.27
vscode-pdf tomoki1207.pdf tomoki1207 1.2.2
Vue (Official) vue.volar Vue 3.3.2
Markdown All in One yzhang.markdown-all-in-one yzhang 3.6.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
82j33506:31327384
6abeh943:31336334
envsactivate1:31505457
cloudbuttont:31379625
42190218_ostrepl:31403339
ec5jj548:31422691
cp_cls_t_966_ss:31454198
inlinechat_v2_hd992725:31505030
8hhj4413:31478653
cp_cls_t_1081:31454832
conptydll_true:31498968
e9c30283:31461165
test_treatment2:31471001
46204921:31447328
idci7584:31464702
e3e4d672:31494082
ei9d7968:31496641
chat:31457767
7e187181:31503455
ghj88844:31499326
ddid_t:31478206
hmra_i5g22:31518061
getcmakediagnosticsoff:31489825
7df3h592:31512476
cp_cls_t_1082:31516087
logging_enabled_new:31498466
j0d79568:31499440
jb_cp_cls_c_632:31517842
56dj4588:31512888
32d76977:31512328
ha629193:31508444
2cfga817_c:31522397
jh5f2457_c:31515489
tco_on:31518472
hgf2d445:31517210
prpt_lrg:31518466
61138546:31518536

Metadata

Metadata

Assignees

Labels

info-neededIssue requires more information from poster

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