Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple Node processes persist after workspace closure unless another VS Code window is open #234986

Open
Angrigo opened this issue Dec 2, 2024 · 0 comments
Assignees

Comments

@Angrigo
Copy link

Angrigo commented Dec 2, 2024

When closing a workspace in VS Code, any running Node.js processes (debug sessions, terminals, etc.) are only properly terminated if another VS Code window/workspace is open during the closure. Otherwise, all Node processes continue running in the background.

Steps to Reproduce

  • Open VS Code
  • Open a workspace containing a Node.js project
  • Start multiple Node.js processes
  • Close the workspace while no other VS Code windows are open
  • Check running processes (e.g. using Task Manager or ps aux | grep node)
  • Repeat steps 1-5, but this time have another VS Code window open while closing the workspace

Expected Behavior
All Node.js processes should terminate automatically when the workspace is closed, regardless of other open VS Code windows.

Environment

VS Code Version: Latest Insider Build and current (1.95.3)
OS: Windows 11
Terminal: PowerShell (integrated)
Extensions: All disabled
Node.js Version: v22.11.0

Impact

  • Multiple Node processes consume significant system resources
  • Processes accumulate if users frequently close/open workspaces
  • Manual cleanup required for multiple processes
  • Port conflicts when restarting projects due to lingering servers
  • Memory leaks from multiple abandoned processes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants