This repository has been archived by the owner on Dec 15, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 78
Hook to server termination #248
Comments
3 tasks
@laughedelic Would this be when the server is intentionally closed, or if it crashes and is restarted as well? |
@Aerijo when it's intentionally closed (which also covers restart). My use case was that I create a status bar element to show some info from the server and when the server terminates I want to remove this element to avoid showing an outdated state. Otherwise it just gets stuck there. |
In ide-rust I used: postInitialization(server) {
...
server.process.on('exit', () => { ... })
} |
Development of atom-languageclient has officially moved to https://github.com/atom-ide-community/atom-languageclient 🎉 If this is still an issue please consider opening an issue on that repo. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
There are methods like
preInitialization
andpostInitialization
, but I don't see any way to hook to the shutdown routine and perform some cleanup actions. I seeexitCleanup
method, but it's private.The text was updated successfully, but these errors were encountered: