Interface WeaveLanguageServerBuilder


public interface WeaveLanguageServerBuilder
  • 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

      WeaveLanguageServerBuilder supportsCodeLenses(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(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(String scheme)
      The file scheme that this language server will handle
      Parameters:
      scheme - The file schema
      Returns:
      this builder.
    • textDocumentTranslator

      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