Skip to content
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

Assess IntelliJ LSP integration #192

Open
StephanWald opened this issue Nov 3, 2024 · 4 comments
Open

Assess IntelliJ LSP integration #192

StephanWald opened this issue Nov 3, 2024 · 4 comments
Assignees
Labels
enhancement New feature or request question Further information is requested

Comments

@StephanWald
Copy link
Member

Enhancement request to examine the effort and ramification of adding support for IntelliJ

https://blog.jetbrains.com/platform/2023/07/lsp-for-plugin-developers
https://plugins.jetbrains.com/docs/intellij/language-server-protocol.html

@msujew @dhuebner can either of you give us a quick guesstimate what it would take to use IntelliJ? Do you have it working with any other Langium-based project, or did you ever test it?

@StephanWald StephanWald added enhancement New feature or request question Further information is requested labels Nov 3, 2024
@StephanWald StephanWald changed the title Asses IntelliJ LSP integration Assess IntelliJ LSP integration Nov 3, 2024
@StephanWald
Copy link
Member Author

how does this relate to https://github.com/aabounegm/langium-intellij-template ? Are there instructions how to "generate" an IntelliJ Plug-In - I didn't find any documentation but eclipse-langium/langium-website#243 which seems to indicate that it's already possible but not documented yet?

@angelozerr
Copy link

@StephanWald please note that LSP support from Jetbrains is not free.

If you want to have a free support for LSP, please try https://github.com/redhat-developer/lsp4ij

langium is aware about LSP4IJ eclipse-langium/langium#999 (comment)

You can evluate your LS with LSP4IJ without developping an IJ plugin, see https://github.com/redhat-developer/lsp4ij/blob/main/docs/UserDefinedLanguageServer.md and if you think LSP4IJ is good, you can create a plugin by declaring your LS, see https://github.com/redhat-developer/lsp4ij/blob/main/docs/DeveloperGuide.md

If you could be interested with LSP4IJ, I suggest that you read https://idetools.dev/blog/lsp4ij-announcement/ to have an overview of LSP4IJ.

More and more plugins are based on LSP4IJ, see https://github.com/redhat-developer/lsp4ij/tree/main?tab=readme-ov-file#who-is-using-lsp4ij

Hope you could be interested with LSP4IJ.

@angelozerr
Copy link

angelozerr commented Nov 6, 2024

@StephanWald just for your info today I have not seen project which uses langium with lsp4ij but I suggest that you see project which uses lsp4ij.

You need just to declare the command which starts your ls.

@StephanWald
Copy link
Member Author

@msujew, in our VSCode Extension, what is the command that "starts the ls"? Can you point me to it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants