Explore preventing add-ons from exiting the process #3315
Labels
enhancement
New feature or request
good-first-issue
Good for newcomers
help-wanted
Extra attention is needed
pinned
This issue or pull request is pinned and won't be marked as stale
server
This pull request should be included in the server gem's release notes
Currently, if an add-on executes
exit
, the Ruby LSP process will die and cause the editor connection to crash.I've been wondering if we can prevent that from happening. My idea would be to capture the original
exit
method in a constant (so that we can ourselves use it when shutting down) and then override it to no-op.Something like this:
The text was updated successfully, but these errors were encountered: