Skip to content
This repository was archived by the owner on Jul 31, 2023. It is now read-only.

Conversation

@seanfarley
Copy link
Contributor

@seanfarley seanfarley commented Dec 20, 2018

This is mainly a cleanup for the lisp code but also fixes issue #5

This is very useful for developement and helps get linting in better shape.
This fixes a linting error and also fixes the wrong method being used for the callback: lsp-python-ms--language-server-started was being used instead of lsp-python-ms--language-server-started-callback. That was most likely due to a bad merge from emacs-lsp#3.
@seanfarley seanfarley changed the title This is mainly a cleanup for the lisp code but also fixes issue #5. linting cleanup and fix for new lsp-mode refactor Dec 20, 2018
@andrew-christianson
Copy link
Collaborator

thanks! I'll review and merge tonight

@seanfarley
Copy link
Contributor Author

There are still a few open questions, by the way:

  • I needed to remove 'pyls from lsp-clients to have this module "work out of the box." I don't know the implications of removing it, though.

  • Do we actually want to keep the old way of adding lsp-mode around? It causes a linting error (not a big deal) but I'm unsure it's possible to use that code path anymore.

Thoughts on either?

@cpbotha
Copy link
Collaborator

cpbotha commented Dec 26, 2018

@seanfarley the new lsp-mode docs state that built-in language servers get priority -1, and external ones by default 0, so they should take precedence.

According to that, it should not be necessary to remove 'pyls from lsp-clients.

@andrew-christianson Would be great to see this merged!

@seanfarley
Copy link
Contributor Author

Sorry for the late reply, been on holiday travel. Hmm, I didn't realize the priority is set automatically. I'll test that tonight!

@seanfarley
Copy link
Contributor Author

Seems like the priority now works, so yay!

@seanfarley
Copy link
Contributor Author

Any word @andrew-christianson on merging this?

@andrew-christianson
Copy link
Collaborator

@seanfarley thanks for the ping, I'd missed this over the holidays. Looks great!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

3 participants