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

Do not exit if client and server are the same process. #2499

Merged
merged 1 commit into from
Feb 28, 2023

Conversation

mickaelistria
Copy link
Contributor

No description provided.

@rgrunber
Copy link
Contributor

@mickaelistria
Copy link
Contributor Author

You probably want the same logic at

Actually, I don't care about the syntax server. But if you want, I can definitely make the same change there.

So you can either disable the parent process watcher, or ensure you always set the parent process id to be the same as the LS. If not, you might still see Eclipse being killed.

Thanks for the tip, I'll use the flag to disable it.

mickaelistria added a commit to redhat-developer/eclipseide-jdtls that referenced this pull request Feb 28, 2023
For Java based clients, they may choose to run the LS application in the
same process. Calling System.exit() would terminate both which may not
be desired.
@rgrunber
Copy link
Contributor

Just updated commit message. I think we can leave the syntax server alone for now.

@rgrunber rgrunber added this to the Mid March 2023 milestone Feb 28, 2023
@rgrunber rgrunber changed the title No exit same process Do not exit if client and server are the same process. Feb 28, 2023
@rgrunber rgrunber merged commit f8fce71 into eclipse-jdtls:master Feb 28, 2023
@mickaelistria
Copy link
Contributor Author

thank you!

mickaelistria added a commit to redhat-developer/eclipseide-jdtls that referenced this pull request Feb 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants