You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Background Info:
- In Unix-like environments, the child process would sometimes not exit even when the parent did.
- The exit/watchdog timers were created due to address this behavior. See the docstring of setupExitTimer().
- The 'detached' flag would not be honored in Unix-like environments, and looks to stay open regardless in some cases.
Problem:
If a language server was set as detached in the ServerOptions, and we wanted it to not exit on parent exit, it would
still exit due to the setupExitTimer()
Solution:
- A server will know that it is detached by the cli process argument: '--detached'
- The client side code to inject this is in a following commit
- The exit/watchdog timers will not run if the detached flag is true
- When the input stream to the server ends due to parent terminating, the server would also. This PR
changes it to skip this if detached.
Signed-off-by: nkomonen-amazon <nkomonen@amazon.com>
0 commit comments