-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
Issue: Music Player Shuts Down When Closing the First VS Code Window
Steps to Reproduce the Issue
- Open VS Code in the first window and start playing music.
- Open a second window of VS Code.
- Close the first window.
Expected Result
- The music should continue playing through the second window.
Actual Result
- The music player shuts down.
Reason
- The
deactivate()
function inextension.ts
gets called when the first window is closed. - There is no proper tracking of the number of open windows in VS Code.
Possible Solutions
1. Global State Tracking
- Use global state to count the number of open windows.
- However, global state values are not cleared when the extension is deleted.
2. File-based Tracking
- Create a file to store the count of open windows.
- This approach needs further exploration to implement correctly.
Request
- Check if there is any way to resolve this issue and make the implementation better.
Metadata
Metadata
Assignees
Labels
No labels