emacs 2025-09-18

My emacs sessions live around a long time because I use the emacs dameon.. over many days I work on many projects each which spawns their own clojure-lsp. Eventually I might close all the buffers for a project, but the clojure-lsp process sticks around using a lot of memory. I can see it with M-X lsp-describe-session how can I kill it from within emacs?

lsp-workspace-shutdown ?

that shuts down my current workspace, I'm looking for a similar function that lets me shut down other workspaces

I guess I need to remember to call lsp-workspace-shutdown before closing the last buffer

you can pass the workspace as a arg to that function

what's a "workspace"? what would I type?

it's a complex structure, but you can get it from (lsp-workspaces) or (lsp--session-workspaces (lsp-session)) to get current one

probably there are other functions to handle that too

ah, ok so i'd have to write some elisp for that

it's a shame lsp-describe-session doesn't provide any actions to operate on the sessions

ah yeah, some elisp will be needed I guess