A language server for Groovy. It is designed specifically for Moonshine IDE, but it may work in other editors and environments.
The following language server protocol requests are currently supported:
- completion
- definition
- documentSymbol
- hover
- references
- rename
- signatureHelp
- symbol
- typeDefinition
The following configuration options are supported:
- groovy.java.home (
string- sets a custom JDK path) - groovy.classpath (
string[]- sets a custom classpath to include .jar files)
To build from the command line, run the following command:
./gradlew buildThis will create build/libs/groovy-language-server-all.jar.
To run the language server, use the following command:
java -jar groovy-language-server-all.jarLanguage server protocol messages are passed using standard I/O by default.
A sample language extension for Visual Studio Code is available in the vscode-extension directory. There are no plans to release this extension to the VSCode Marketplace.
Instructions for setting up the language server in Sublime Text is available in the sublime-text directory. Configuring the language server in other editors will likely be very similar.
Moonshine IDE natively provides a Grails project type that automatically configures the language server.