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

Add proper shutdown support when closing IDE window #136

Merged

Conversation

gayanper
Copy link
Contributor

Add support for shutting down language server when IDE window is closed and IDEA jvm is forcefully stopped.

@gayanper
Copy link
Contributor Author

@nipuna hold this off i need to do some more testing. I think i should only stop if its only running. Now we try to stop the same server twice 😔. My bad i didn't check the stop method frankly before pushing this change. Late night mistakes 😒

@NipunaRanasinghe
Copy link
Contributor

Hey no worries @gayanper! Take your time and let me know when your PR is ready :) may be you can do some more debugging to see whats really going wrong with the shutdown request

This also fixes some exception which are thrown when server listener is
used.
@gayanper
Copy link
Contributor Author

Cleanup the code and add more fixes to stop exception when a server listener is used.

@gayanper
Copy link
Contributor Author

@NipunaRanasinghe you can review now

@gayanper
Copy link
Contributor Author

@NipunaRanasinghe any update on this PR ?

@NipunaRanasinghe
Copy link
Contributor

@gayanper Thanks for the improvements :)

@NipunaRanasinghe NipunaRanasinghe merged commit a92e52d into ballerina-platform:master Sep 23, 2019
@gayanper gayanper deleted the pr/shutdown-hooks branch October 18, 2019 17:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants