A language server implementation based on the Language Server Protocol for MicroProfile. This Language Server for MicroProfile (LSP4MP) provides core language support capabilities (such as code complete, diagnostics, quick fixes) to enable developers to quickly and easily develop applications using MicroProfile APIs.
This project contains:
You can build all projects at once by running the buildAll.sh
script (buildAll.bat
on Windows).
When you open a MicroProfile project, lsp4mp provides:
@/api/endpointName: GET
In microprofile-config.properties
files, you will benefit with:
In Java files, you will benefit with:
For information on the architecture/project structure see architecture.md
JDK 11 is required to build the language server and the eclipse.jdt.ls
extension.
Here are the Maven coordinates for LSP4MP (replace the X.Y.Z
version with the latest release):
<dependency>
<groupId>org.eclipse.lsp4mp</groupId>
<artifactId>org.eclipse.lsp4mp.ls</artifactId>
<version>X>Y>Z</version>
<classifier>uber</classifier>
<exclusions>
<exclusion>
<groupId>org.eclipse.lsp4j</groupId>
<artifactId>org.eclipse.lsp4j</artifactId>
</exclusion>
<exclusion>
<groupId>org.eclipse.lsp4j</groupId>
<artifactId>org.eclipse.lsp4j.jsonrpc</artifactId>
</exclusion>
</exclusions>
</dependency>
for Gradle:
compile(group: 'org.eclipse.lsp4mp', name: 'org.eclipse.lsp4mp', version: 'X.Y.Z', classifier: 'uber')
You will have to reference the Maven repository hosting the dependency you need. E.g. for Maven, add this repository to your pom.xml or settings.xml :
<repository>
<id>lsp4mp-releases</id>
<url>https://repo.eclipse.org/content/repositories/lsp4mp-releases/</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
<releases>
<enabled>true</enabled>
</releases>
</repository>
And if you want to consume the SNAPSHOT builds instead:
<repository>
<id>lsp4mp-snapshots</id>
<url>https://repo.eclipse.org/content/repositories/lsp4mp-snapshots/</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
Both the MicroProfile JDT LS Extensions and MicroProfile Language Server can be extended to provide additional functionality. A common extension is to provide additional snippets via an external JAR.
Example extensions:
Please report bugs, issues and feature requests by creating a GitHub Issue