Package org.mule.weave.extension.api
Interface WeaveLanguageServerBuilder
public interface WeaveLanguageServerBuilder
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceThe Language Server would handle DataWeave files based onfileScheme(String)so aWeaveLanguageServerBuilder.TextDocumentTranslatoris responsible for translating the embeddedURIformat to aLocationpointing to the file system textDocument file. -
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.lsp4j.services.LanguageServerbuild()Builds the LSfileScheme(String scheme) The file scheme that this language server will handlesupportsCodeActions(Boolean codeActions) If the created LS should contribute with code actions.supportsCodeLenses(Boolean codeLenses) If the created LS should contribute with code lenses.textDocumentTranslator(WeaveLanguageServerBuilder.TextDocumentTranslator textDocumentLocator) The locator for this language server to handle the file scheme.ID to identify the created builder.
-
Method Details
-
withId
ID to identify the created builder. Used for logging reasons.- Parameters:
id- The ID to for this LS- Returns:
- this builder.
-
supportsCodeLenses
If the created LS should contribute with code lenses.- Parameters:
codeLenses- whether the created LS should contribute with code lenses.- Returns:
- this builder.
-
supportsCodeActions
If the created LS should contribute with code actions.- Parameters:
codeActions- whether the created LS should contribute with code actions.- Returns:
- this builder.
-
fileScheme
The file scheme that this language server will handle- Parameters:
scheme- The file schema- Returns:
- this builder.
-
textDocumentTranslator
WeaveLanguageServerBuilder textDocumentTranslator(WeaveLanguageServerBuilder.TextDocumentTranslator textDocumentLocator) The locator for this language server to handle the file scheme. Needed if a file scheme is defined.- Parameters:
textDocumentLocator- The text document locator.- Returns:
- this builder.
-
build
org.eclipse.lsp4j.services.LanguageServer build()Builds the LS- Returns:
- a new Language Server
-