lsp4intellij | This language client library provides language server protocol support for IntelliJ IDEA and other J
kandi X-RAY | lsp4intellij Summary
kandi X-RAY | lsp4intellij Summary
Lsp4IntelliJ is a client library, which provides language server support for IntelliJ IDEA and other Jetbrains IDEs. It is designed to be used with any IntelliJ plugin as its language server client to get the features that are based on the language server. Also, it allows the plugin developers to use language-specific language server protocol extensions via the JSON-RPC protocol.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Requests the completion of a given position
- Creates a LookupElement from a CompletionItem
- Adds insert handlers for a completion item
- Execute the LSP annotations
- Update annotations
- Create annotations on the event manager
- Populates the completion variables
- Gets completion prefix from editor text
- Create a navigation item
- Create a symbol information from a workspace
- Handles message request
- Unregister capabilities
- Performs an action on the editor
- Get the status icons
- Parse the command line arguments
- Perform the action to reformat
- Put copyable user data
- Opens an unopened editable if necessary
- Collects references to the current page
- Prepares snippets
- Performs the action
- Gets the text of the specified line starting at the specified offsets
- Display message dialog
- Helper method to apply initial text edit
- Log message
- Collect annotations
lsp4intellij Key Features
lsp4intellij Examples and Code Snippets
Community Discussions
Trending Discussions on lsp4intellij
QUESTION
I am trying to develop a IntelliJ plugin which provides a Language Server with help of lsp4intellij by ballerina.
Thing is, i've got a special condition: The list of completion items should be editable in runtime.
But I've not found any way to communicate new completionItems to the LanguageServer process once its running.
My current idea is to add an action to the plugin which builds a new jar and then restarts the server with the new jar, using the Java Compiler API.
The problem with that is, i need to get the source code from the plugin project including the gradle dependencies accessable from the running plugin... any ideas?
...ANSWER
Answered 2021-Apr-08 at 04:23If your requirement is to modify the completion items (coming from the language server) before displaying them in the IntelliJ UI, you can do that by implementing the LSP4IntelliJ's LSPExtensionManager in your plugin.
Currently, we do not have proper documentation for the LSP4IntelliJ's extension points but you can refer to our Ballerina IntelliJ plugin as a reference implementation, where it has implemented Ballerina LSP Extension manager to override/modify completion items at the client runtime in here.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install lsp4intellij
You can use lsp4intellij like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the lsp4intellij component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page