Skip to content

Revert buffer seems to close lsp mode and the server #3469

@ZelCloud

Description

@ZelCloud

Thank you for the bug report

  • You may also try reproduce the issue using clean environment using the following command: M-x lsp-start-plain

  • I checked FAQ and Troubleshooting sections

  • I am using the latest version of lsp-mode related packages.

Bug description

Running the command revert-buffer closes the lsp server.

Steps to reproduce

Start lsp server in buffer with lsp, then run the command revert-buffer at some point.

Expected behavior

The lsp server would continue running the lsp-mode won't stop, other minor and major modes don't stop so this behavior seems very odd.

Which Language Server did you use?

Rust - rust-analyer
Typescript - tls

OS

Windows

Error callstack

No response

Anything else?

After a revert-buffer running lsp again starts the server and everything seems to work normally, Doesn't matter how many times this is done.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions