Package org.mule.weave.extension.api
Interface WeaveLanguageServerBuilder
-
public interface WeaveLanguageServerBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.eclipse.lsp4j.services.LanguageServerbuild()Builds the LSWeaveLanguageServerBuilderfileScheme(java.lang.String scheme)The file scheme that this language server will handleWeaveLanguageServerBuildersupportsCodeActions(java.lang.Boolean codeActions)If the created LS should contribute with code actions.WeaveLanguageServerBuildersupportsCodeLenses(java.lang.Boolean codeLenses)If the created LS should contribute with code lenses.WeaveLanguageServerBuildersupportsCommands(java.lang.Boolean commands)If the created LS should contribute with commands.WeaveLanguageServerBuilderwithId(java.lang.String id)ID to identify the created builder.
-
-
-
Method Detail
-
withId
WeaveLanguageServerBuilder withId(java.lang.String id)
ID to identify the created builder. Used for logging reasons.- Parameters:
id- The ID to for this LS.- Returns:
- this builder.
-
supportsCommands
WeaveLanguageServerBuilder supportsCommands(java.lang.Boolean commands)
If the created LS should contribute with commands.- Parameters:
commands- whether the created LS should contribute with commands.- Returns:
- this builder.
-
supportsCodeLenses
WeaveLanguageServerBuilder supportsCodeLenses(java.lang.Boolean codeLenses)
If the created LS should contribute with code lenses.- Parameters:
codeLenses- whether the created LS should contribute with code lenses.- Returns:
- this builder.
-
supportsCodeActions
WeaveLanguageServerBuilder supportsCodeActions(java.lang.Boolean codeActions)
If the created LS should contribute with code actions.- Parameters:
codeActions- whether the created LS should contribute with code actions.- Returns:
- this builder.
-
fileScheme
WeaveLanguageServerBuilder fileScheme(java.lang.String scheme)
The file scheme that this language server will handle- Parameters:
scheme- The file schema- Returns:
- this builder.
-
build
org.eclipse.lsp4j.services.LanguageServer build()
Builds the LS- Returns:
- a new Language Server
-
-