Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to keep LSP server running while project open, even after last file is closed #2332

Open
LPGhatguy opened this issue Oct 10, 2023 · 0 comments

Comments

@LPGhatguy
Copy link

Is your feature request related to a problem? Please describe.
When I'm working on a large Rust project using LSP-rust-analyzer, it takes a long time for the LSP server to start up.

If I close the files I am currently working on and then start working on another part of the codebase, I have to wait for the server to start up again. This can take up to a minute, and until that's complete, I have no LSP features.

Describe the solution you'd like
Once the rust-analyzer LSP server has started, I'd like it to stay running as long as I have the project open. A per-server configuration option might be a good way to opt into this behavior.

This is how VS Code's rust-analyzer LSP integration works. The server is started the first time the user opens a Rust file in a workspace, and the server continues running as long as the workspace is open.

Describe alternatives you've considered
I could make sure to always keep at least one Rust file open. Once I realized that this was the cause of my workflow issues, I've tried to start doing that, but it's easy to forget. Once I close the last Rust file, I'm forced to wait before I can start working again!

I could use VS Code, but I'd strongly prefer to stick with ST4. 😅

Additional context
I originally filed an issue about this at #2387. After a conversation there and looking at the code in that repo, it seems like an option in the LSP package would be the best option.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants