-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple language id, file extension pairs support (trying ocamllsp) #37
Comments
The spec defines these languages: https://microsoft.github.io/language-server-protocol/specifications/specification-current/#textDocumentItem I think we can extend the
|
Extending
I'm not sure how that would translate to the command line. Maybe like this:
|
I think the first approach is quite concise, each
I haven't read that code for the current acme-lsp though :( |
I opted for comma as the separator instead of
|
nice! works great 👍 |
Hello
I am trying the ocaml-lsp server (https://github.com/ocaml/ocaml-lsp) and it requires a combination of file-extension / languageId parameters which I am unable to set up using acme-lsp.
I guess DetectLanguage is only prepared for golang and python, and it might work if the file extension is the same as the language id in the language server you're using. I've tried scala metals in the past and it worked, probably because of this.
Seems that making the obvious change to the function DetectLanguage gets the ocaml-lsp server working.
Adding a language id parameter in acme-lsp would come handy to support more languages.
This server supports multiple languages a the same time like ReasonML and Ocaml. My guess is that each time one is opened in an editor, the apropriate extension/langId is generated.
Something like:
$ acme-lsp -lang ml:ocaml -lang rml:reasonml -lang ...
could work. What do you think?
gabi
The text was updated successfully, but these errors were encountered: