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
{{ message }}
Repository navigation
Keep language servers alive when all files are closed #489
In a large project, it might take quite some time for rust-analyzer to initialize itself.
If someone clicked "Close All Tabs" and subsequently opens another file, the language server is restarted and I have to wait until it finishes loading.
I'm thinking of keeping the language server running until the IDE window is closed, or after an inactivity timeout. IMHO, either the user should be given an option, or plugin authors should be able to control it via some API.
Activity
turkeylurkey commentedon Aug 28, 2024
When you define your server
<server id="XXXlsp"you can add the parameterlastDocumentDisconnectedTimeout="3600"which is an inactivity timeout.angelozerr commentedon Aug 30, 2024
@harry-xm as @turkeylurkey suggested, you can define
lastDocumentDisconnectedTimeout="3600"for the moment.harry-xm commentedon Aug 30, 2024
Thanks. I guess if I set it to a year, that is effectively keeping servers alive.
angelozerr commentedon Oct 2, 2024
Duplicate of #556
which will be covered in 0.7.0 with #543
Please read #556 (comment) and give me your feedback about the name of the method.