Repository: vscode
Issue: Node process in terminal not killed when VSCode is closed (Windows)
Labels: bug,windows,confirmation-pending,terminal-process

Type: <b>Bug</b>

I'm getting a similar issue to this from march last year (but only for one of my devices):
https://github.com/microsoft/vscode/issues/177044

Steps to recreate:
- Local vite project
- running `npm run dev`
- closing vscode
- reopening vscode
- running `npm run dev`
- port in use, port incremented
- need to run `taskkill /f /im node.exe` to kill all the node processes running in the background

Video:

https://github.com/user-attachments/assets/8a44e775-308f-4726-b37c-053123246a38

NOTE:
Tried VSCode insiders and it has the same issue. Not able to reproduce on any of my other devices.

- This issue is happening on the new Surface Pro 11 with the arm snapdragon CPU.
    - Windows_NT arm64 10.0.26100
    - Node 20.16.0
    - npm 10.8.1
    - Powershell 7.4.3
    - (included system info below)
- Tested with older Surface Pro X but it behaves normally
    - Windows_NT arm64 10.0.22631
    - Node 20.16.0
    - npm 10.8.1
    - Powershell 7.4.3
- Tested on desktop (non-arm) and it also behaves normally

----------------------------------------------------------------------

VS Code version: Code 1.91.1 (f1e16e1e6214d7c44d078b1f0607b2388f29d729, 2024-07-09T22:06:13.855Z)
OS version: Windows_NT arm64 10.0.26100
Modes:

<details>
<summary>System Info</summary>

|Item|Value|
|---|---|
|CPUs|Snapdragon(R) X 12-core X1E80100 @ 3.40 GHz (12 x 2976)|
|GPU Status|2d_canvas: enabled<br>canvas_oop_rasterization: enabled_on<br>direct_rendering_display_compositor: disabled_off_ok<br>gpu_compositing: enabled<br>multiple_raster_threads: enabled_on<br>opengl: enabled_on<br>rasterization: enabled<br>raw_draw: disabled_off_ok<br>skia_graphite: disabled_off<br>video_decode: enabled<br>video_encode: enabled<br>vulkan: disabled_off<br>webgl: enabled<br>webgl2: enabled<br>webgpu: enabled|
|Load (avg)|undefined|
|Memory (System)|15.36GB (3.75GB free)|
|Process Argv|--crash-reporter-id f5480f1e-c49f-4c86-a0e3-b3ce2cba3500|
|Screen Reader|no|
|VM|0%|
</details><details><summary>Extensions (20)</summary>

Extension|Author (truncated)|Version
---|---|---
astro-vscode|ast|2.12.6
es6-string-css|bas|0.1.0
lit-html|bie|1.11.1
vscode-tailwindcss|bra|0.12.5
npm-intellisense|chr|1.4.5
vscode-eslint|dba|3.0.10
dotenv-vscode|dot|0.28.1
xml|Dot|2.5.1
prettier-vscode|esb|10.4.0
vscode-github-actions|git|0.26.3
todo-tree|Gru|0.0.226
filemaker-vscode|jwi|1.9.0
dotenv|mik|1.0.1
remote-wsl|ms-|0.88.2
vsliveshare|ms-|1.0.5936
html-to-jsx|ria|0.0.1
lit-plugin|run|1.4.3
stately-vscode|sta|2.1.0
code-spell-checker|str|3.0.1
svelte-vscode|sve|108.5.4


</details><details>
<summary>A/B Experiments</summary>

```
vsliv368cf:30146710
vspor879:30202332
vspor708:30202333
vspor363:30204092
vswsl492cf:30256860
vstes627:30244334
vscod805:30301674
binariesv615:30325510
vsaa593cf:30376535
py29gd2263:31024239
c4g48928:30535728
azure-dev_surveyone:30548225
vscrpc:30673769
962ge761:30959799
pythongtdpath:30769146
welcomedialog:30910333
pythonnoceb:30805159
asynctok:30898717
pythonregdiag2:30936856
pythonmypyd1:30879173
h48ei257:31000450
pythontbext0:30879054
accentitlementsc:30995553
dsvsc016:30899300
dsvsc017:30899301
dsvsc018:30899302
cppperfnew:31000557
dsvsc020:30976470
pythonait:31006305
dsvsc021:30996838
0ee40948:31013168
pythoncenvpt:31062603
a69g1124:31058053
dvdeprecation:31068756
dwnewjupytercf:31046870
2f103344:31071589
impr_priority:31102340
refactort:31101459
pythonrstrctxtcf:31103194
wkspc-onlycs-t:31102394

```

</details>

<!-- generated by issue reporter -->