How do I create an Intellij LSP client and Intellij LSP server and connect them?

已回答

How do I create an Intellij LSP client and Intellij LSP server and connect them?

I saw a related discussion
https://intellij-support.jetbrains.com/hc/en-us/community/posts/19363036989202-Developing-LSP-Plugin-for-Intellij
But there is no more specific content, only a project link is provided, but there is no documentation on how to connect to the server

I also saw an unofficial example like https://github.com/redhat-developer/lsp4ij, which should have nothing to do with the official

Does the official have relevant tutorials and documents now? Does the official support the LSP client now, or does the official not support it at present, and only third parties support the LSP client?

Because I didn't find the answer in other discussions, I started a new discussion, thank you

0
正式评论

A minimal, yet fully-functional LSP API-based plugin requires writing just a few lines of code. You'll find an example in https://plugins.jetbrains.com/docs/intellij/language-server-protocol.html#basic-implementation

Tip: once you've created an IntelliJ Plugin project, first of all, make sure you have LSP API source code available in your project. The source code contains useful documentation. Navigate to LspServerDescriptor class. If you see decompiled code instead of real source code, you'll see a suggestion right in the editor to configure real LSP API source code.

请先登录再写评论。