Lsp-mode: "Start a new Language Server" question

Created on 11 Apr 2017  路  6Comments  路  Source: emacs-lsp/lsp-mode

At the moment, if I choose not to use LSP for a project, it will ask me every time I open a different file in the project if I want to start a new language server.

Perhaps we should store the fact that for a given project root the answer is currently no.

Most helpful comment

I prefer the completely manual way of ensime, where you have to do M-x ensime to start the server. It is not as user friendly as having something automatically come up and I didn't like it very much in the beginning, but I grew to prefer it and:

  • it avoids the issues of when should the automatic prompt come up
  • it gives you a way to start the server manually if the prompt doesn't come up for some reason
  • I don't like having a find-file-hook created by plugins

All 6 comments

Also, I started Emacs, it restored my saved desktop and decided to ask like two dozens of this question. Not useful!

I prefer the completely manual way of ensime, where you have to do M-x ensime to start the server. It is not as user friendly as having something automatically come up and I didn't like it very much in the beginning, but I grew to prefer it and:

  • it avoids the issues of when should the automatic prompt come up
  • it gives you a way to start the server manually if the prompt doesn't come up for some reason
  • I don't like having a find-file-hook created by plugins

@rski yeah, that sounds much better. I'm working on a similar lsp-start solution that you can hook into language major modes.

lsp-mode is now enabled by hooking it into a major mode, so this question is never asked.

I am not convinced that this is the right solution.

I prefer to explicitly start a server, rather than have it start for any haskell file I open. So the prior mechanism (one question per workspace root), or a solution as proposed by @rski would be better. In my opinion.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

glepnir picture glepnir  路  4Comments

dennismayr picture dennismayr  路  4Comments

michaelpj picture michaelpj  路  4Comments

MaskRay picture MaskRay  路  5Comments

sid-kap picture sid-kap  路  5Comments