Skip to content

Kill LSP gracefully #3482

Closed
Closed
@dead10ck

Description

@dead10ck

https://github.com/helix-editor/helix/blob/master/helix-lsp/src/client.rs#L62

It seems kill_on_drop sends a SIGKILL which is kind of aggressive, and could cause corruption. It's occurring to me that this may be why rust-analyzer has to reindex everything every time it runs. It also looks like there isn't a way to send a SIGTERM through the built-in tokio API. It looks like we'd have to add platform-specific code to handle this properly.

Originally posted by @dead10ck in #3435 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions