Closing the window when closing the markdown file
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 48/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- typescript
- Domain
- desktop
Research direction
Reproduce the issue in VS Code Insiders on macOS by opening a Markdown file, selecting “Open as Preview,” and pressing CMD+W. Start by tracing the Markdown preview and window-close behavior; done means closing the file closes only the relevant editor and leaves the VS Code window and project open.
Written by the indexing model from the issue text.
Description
Type: Bug
If I open any markdown file, and then click on the 'Open as Preview' icon button from the top right corner, it is closing the vscode window and my project when I close the file using CMD+W shortcut.
VS Code version: Code - Insiders 1.127.0-insider (2fb1c411a7933676c4efd18140f2a98fc910c945, 2026-06-25T20:52:49-07:00)
OS version: Darwin arm64 25.4.0
Modes:
System Info
| Item | Value |
|---|---|
| CPUs | Apple M2 Pro (10 x 2400) |
| GPU Status | 2d_canvas: enabled GPU0: VENDOR= 0x106b [Google Inc. (Apple)], DEVICE=0x0000 [ANGLE (Apple, ANGLE Metal Renderer: Apple M2 Pro, Version 26.4.1 (Build 25E253))], DRIVER_VENDOR=Apple, DRIVER_VERSION=26.4.1 ACTIVE Machine model name: Mac Machine model version: 14.9 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 webgpu: enabled webnn: disabled_off |
| Load (avg) | 2, 2, 2 |
| Memory (System) | 16.00GB (0.28GB free) |
| Process Argv | --crash-reporter-id 7ae3d1da-b258-4f55-9a3e-a3960fb9f4f0 |
| Screen Reader | no |
| VM | 0% |
Extensions (9)
| Name | Identifier | Author | Version |
|---|---|---|---|
| Claude Code for VS Code | anthropic.claude-code | Anthropic | 2.1.193 |
| Dart | dart-code.dart-code | Dart-Code | 3.137.20260616 |
| Flutter | dart-code.flutter | Dart-Code | 3.137.20260601 |
| GitLens — Git supercharged | eamodio.gitlens | eamodio | 2026.6.260607 |
| Prettier - Code formatter | esbenp.prettier-vscode | esbenp | 12.4.0 |
| Gemini Code Assist | google.geminicodeassist | 2.87.0 | |
| Version Lens | pflannery.vscode-versionlens | pflannery | 1.28.0 |
| YAML | redhat.vscode-yaml | redhat | 1.24.2026062509 |
| Flutter Riverpod Snippets | robert-brunhage.flutter-riverpod-snippets | robert-brunhage | 2.0.0 |
A/B Experiments
vsliv368cf:30146710
pythonvspyt551cf:31249598
nativeloc1:31118317
dwcopilot:31158714
dwoutputs:31242946
copilot_t_ci:31333650
g012b348:31231168
pythonrdcb7:31268811
pythonpcpt1:31399616
6518g693:31302842
6abeh943:31336334
envsactivate1:31349248
editstats-enabled:31346256
cloudbuttont:31366566
3efgi100_wstrepl:31403338
cp_cls_t_966_ss:31526232
4je02754:31481634
8hhj4413:31478653
38bie571_auto:31426784
cp_cls_c_1081:31454833
conptydll_true:31485575
ia-use-proxy-models-svc:31446143
e9c30283:31453065
test_treatment2:31471001
c9b86496:31447327
idci7584:31454084
e3e4d672:31454087
ei9d7968:31462942
de16b994:31458079
hhf17803:31462392
7e187181:31482583
h08i8180_copy:31475366
ddid_t:31478204
hmra_i5g22:31518061
bjc72774_agent_sandbox:31538428
7df3h592:31491241
cp_cls_t_1082:31535311
logging_enabled_new:31490725
jb_cp_cls_t_632:31537244
32d76977:31503652
ha629193:31508444
cdk-lw-on:31524445
f9bf7985:31531254
2cfga817_c:31517329
a1ije391_t:31533808
8hfba999:31537718
jbcp_cls_pctr_t:31531130
cp_intellij_c_nes:31533503
d7b18187:31526828
h561g132:31534507
ihg5j128:31534457
- Dominant language
- TypeScript
- Stars
- 193k
- Forks
- 42.9k
- PR merge metrics
- PR metrics pending
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from microsoft/vscode
-
testplan-item
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
new release
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
testplan-item
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
testplan-item
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
All issues in microsoft/vscode
Similar issues
-
clawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster no-stale P3
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Difficulty 1/5 Under an hour Newbie friendliness 76/100
-
code-quality refactoring
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
github/gh-aw-firewall#8816 ·
-
integration:quickjs org:external priority:backlog topic:code-interpreter topic:middleware type:feature
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
langchain-ai/deepagents#6450 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
vercel/react-tweet#225 ·