Bug 461520 - Add a way to temporarily stop LSP server
Summary: Add a way to temporarily stop LSP server
Status: REPORTED
Alias: None
Product: kate
Classification: Applications
Component: application (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-11-06 21:16 UTC by Ahmad Samir
Modified: 2022-11-07 09:16 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ahmad Samir 2022-11-06 21:16:26 UTC
This is useful if you have multiple instances of Kate open, each on a different project; clangd takes 10% of my 16GiB of RAM per project (depending on project's codebase size). It would be nice if there is a way to "suspend" the LSP server, i.e. terminate it to free the memory, the one can resume/start it again when one wants to work on the project in that Kate instance.

Closing the Kate instance is an option, yes, but quite annoying, you have documents open, edits in the undo stack ...etc.
Comment 1 Ahmad Samir 2022-11-07 09:16:36 UTC
Another data point, QtCreator has two config options:
- "Files to keep open":
        "Minimum number of open documents that should be kept in memory. Increasing this number will lead to greater resource usage when not manually closing documents."

- "Auto-suspend unmodified files":
        "Automatically free resources of old documents that are not visible and not modified. They stay visible in the list of open documents."