Skip to content

MUDE Players closes while using multiple windows #1

@mayur1377

Description

@mayur1377

Issue: Music Player Shuts Down When Closing the First VS Code Window

Steps to Reproduce the Issue

  1. Open VS Code in the first window and start playing music.
  2. Open a second window of VS Code.
  3. 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 in extension.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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions