lsp-mode icon indicating copy to clipboard operation
lsp-mode copied to clipboard

Opposite of lsp-install-server

Open raxod502 opened this issue 3 years ago • 7 comments

Is there any interest in a command M-x lsp-uninstall-server which would do the opposite of M-x lsp-install-server? I think the alternative way of uninstalling a language server is to manually root around in ~/.emacs.d and guess which directory to delete, which seems like a subpar user experience.

raxod502 avatar May 03 '22 03:05 raxod502

If you use Doom Emacs, there is an uninstall command like this one:

image

VisionaryAppDev avatar May 03 '22 06:05 VisionaryAppDev

I think it makes sense to have a command for that, WDYT @yyoncho?

ericdallo avatar May 03 '22 12:05 ericdallo

I guess we can, although I don't see big value in it because you can go in lsp install dir and delete whatever your want or you can use lsp-disabled-clients to stop the servers that you don't want to run

yyoncho avatar May 03 '22 12:05 yyoncho

I think it's more like a way to clean what lsp-mode did, just to have a way in and out

ericdallo avatar May 03 '22 12:05 ericdallo

I think it's more like a way to clean what lsp-mode did, just to have a way in and out

I see that but in the end, you can have M-x lsp-unsinstall-server and after that, you may still hit the server because you may have the package installed globally. It is not like in vscode where the server is bundled with the extension.

yyoncho avatar May 03 '22 12:05 yyoncho

yes, but at least we would uninstall anything installed via lsp-mode, I think it's expected to lsp-mode don't touch global (outside emacs) installs. Maybe we can make it clear on command docstring

ericdallo avatar May 03 '22 12:05 ericdallo

I don't mind adding it, it has a certain value.

yyoncho avatar May 03 '22 13:05 yyoncho