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

How to start a external Server from a extension only once? #237242

Open
jogibear9988 opened this issue Jan 3, 2025 · 0 comments
Open

How to start a external Server from a extension only once? #237242

jogibear9988 opened this issue Jan 3, 2025 · 0 comments
Assignees

Comments

@jogibear9988
Copy link

I need a feature to start a external server only once from a extension, but also when the last instance of the extension is deactivated the server needs to be killed.

Problem is, I can share the PID of the server via context.globalState, but I cannot detect in the "deactivate" if it is the last instance, so I know I need to kill the server.

How is this possible?

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