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

Closed
jogibear9988 opened this issue Jan 3, 2025 · 1 comment
Closed

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

jogibear9988 opened this issue Jan 3, 2025 · 1 comment
Assignees
Labels
*dev-question VS Code Extension Development Question

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?

@lramos15 lramos15 added *dev-question VS Code Extension Development Question and removed triage-needed labels Jan 6, 2025
Copy link

We have a great extension developer community over on GitHub discussions and Slack where extension authors help each other. This is a great place for you to ask questions and find support.

Happy Coding!

@vs-code-engineering vs-code-engineering bot closed this as not planned Won't fix, can't repro, duplicate, stale Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
*dev-question VS Code Extension Development Question
Projects
None yet
Development

No branches or pull requests

2 participants