c

scala.meta.internal.metals.clients.language

ConfiguredLanguageClient

final class ConfiguredLanguageClient extends DelegatingLanguageClient

Delegates requests/notifications to the underlying language client according to the user configuration.

This wrapper class manages differences in how editors interpret LSP endpoints slightly differently, especially the window/{logMessage,showMessage} notifications. For example, with vim-lsc the messages from window/logMessage are always visible in the UI while in VS Code the logs are hidden by default.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ConfiguredLanguageClient
  2. DelegatingLanguageClient
  3. MetalsLanguageClient
  4. TreeViewClient
  5. LanguageClient
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new ConfiguredLanguageClient(initial: MetalsLanguageClient, clientConfig: ClientConfiguration, service: WorkspaceLspService)(implicit ec: ExecutionContext)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def applyEdit(params: ApplyWorkspaceEditParams): CompletableFuture[ApplyWorkspaceEditResponse]
    Definition Classes
    DelegatingLanguageClient → LanguageClient
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  7. def configuration(configurationParams: ConfigurationParams): CompletableFuture[java.util.List[AnyRef]]
    Definition Classes
    DelegatingLanguageClient → LanguageClient
  8. def createProgress(params: WorkDoneProgressCreateParams): CompletableFuture[Void]
    Definition Classes
    ConfiguredLanguageClientDelegatingLanguageClientMetalsLanguageClient → LanguageClient
  9. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  10. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  11. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  12. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  13. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  14. def logMessage(message: MessageParams): Unit
    Definition Classes
    ConfiguredLanguageClientDelegatingLanguageClient → LanguageClient
  15. def logTrace(arg0: LogTraceParams): Unit
    Definition Classes
    LanguageClient
    Annotations
    @JsonNotification()
  16. def metalsExecuteClientCommand(params: ExecuteCommandParams): Unit
  17. final def metalsInputBox(params: MetalsInputBoxParams): CompletableFuture[Option[MetalsInputBoxResult]]

    Opens an input box to ask the user for input.

    Opens an input box to ask the user for input.

    returns

    the user provided input or None if request was cancelled. The future can be cancelled, meaning the input box should be dismissed in the editor.

    Definition Classes
    MetalsLanguageClient
  18. final def metalsQuickPick(params: MetalsQuickPickParams): CompletableFuture[Option[MetalsQuickPickResult]]

    Opens an menu to ask the user to pick one of the suggested options.

    Opens an menu to ask the user to pick one of the suggested options.

    returns

    the user provided pick or None if request was cancelled. The future can be cancelled, meaning the input box should be dismissed in the editor.

    Definition Classes
    MetalsLanguageClient
  19. def metalsStatus(params: MetalsStatusParams): Unit

    Display message in the editor "status bar", which should be displayed somewhere alongside the buffer.

    Display message in the editor "status bar", which should be displayed somewhere alongside the buffer.

    The status bar should always be visible to the user.

    - VS Code: https://code.visualstudio.com/docs/extensionAPI/vscode-api#StatusBarItem

    Definition Classes
    ConfiguredLanguageClientDelegatingLanguageClientMetalsLanguageClient
  20. def metalsTreeViewDidChange(params: TreeViewDidChangeParams): Unit
  21. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  22. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  23. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  24. def notifyProgress(params: ProgressParams): Unit
    Definition Classes
    ConfiguredLanguageClientDelegatingLanguageClientMetalsLanguageClient → LanguageClient
  25. def publishDiagnostics(diagnostics: PublishDiagnosticsParams): Unit
    Definition Classes
    DelegatingLanguageClient → LanguageClient
  26. def rawMetalsInputBox(params: MetalsInputBoxParams): CompletableFuture[RawMetalsInputBoxResult]

    Opens an input box to ask the user for input.

    Opens an input box to ask the user for input. This method is used to deal with gson and existing extension protocol.

    returns

    the user provided input.

    Definition Classes
    ConfiguredLanguageClientDelegatingLanguageClientMetalsLanguageClient
  27. def rawMetalsQuickPick(params: MetalsQuickPickParams): CompletableFuture[RawMetalsQuickPickResult]

    Opens an menu to ask the user to pick one of the suggested options.

    Opens an menu to ask the user to pick one of the suggested options. This method is used to deal with gson and existing extension protocol.

    returns

    the user provided pick.

    Definition Classes
    ConfiguredLanguageClientDelegatingLanguageClientMetalsLanguageClient
  28. def refreshCodeLenses(): CompletableFuture[Void]
    Definition Classes
    LanguageClient
    Annotations
    @JsonRequest()
  29. def refreshDiagnostics(): CompletableFuture[Void]
    Definition Classes
    LanguageClient
    Annotations
    @JsonRequest()
  30. def refreshInlayHints(): CompletableFuture[Void]
    Definition Classes
    ConfiguredLanguageClientDelegatingLanguageClient → LanguageClient
  31. def refreshInlineValues(): CompletableFuture[Void]
    Definition Classes
    LanguageClient
    Annotations
    @JsonRequest()
  32. def refreshModel(): CompletableFuture[Unit]
  33. def refreshSemanticTokens(): CompletableFuture[Void]
    Definition Classes
    ConfiguredLanguageClient → LanguageClient
  34. def registerCapability(params: RegistrationParams): CompletableFuture[Void]
    Definition Classes
    DelegatingLanguageClient → LanguageClient
  35. def showDocument(arg0: ShowDocumentParams): CompletableFuture[ShowDocumentResult]
    Definition Classes
    LanguageClient
    Annotations
    @JsonRequest()
  36. def showMessage(params: MessageParams): Unit
    Definition Classes
    ConfiguredLanguageClientDelegatingLanguageClient → LanguageClient
  37. final def showMessage(messageType: MessageType, message: String): Unit
    Definition Classes
    MetalsLanguageClient
  38. def showMessageRequest(params: ShowMessageRequestParams): CompletableFuture[MessageActionItem]
    Definition Classes
    ConfiguredLanguageClientDelegatingLanguageClient → LanguageClient
  39. def shutdown(): Unit
  40. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  41. def telemetryEvent(value: Any): Unit
    Definition Classes
    DelegatingLanguageClient → LanguageClient
  42. def toString(): String
    Definition Classes
    AnyRef → Any
  43. var underlying: MetalsLanguageClient
    Definition Classes
    DelegatingLanguageClient
  44. def unregisterCapability(params: UnregistrationParams): CompletableFuture[Void]
    Definition Classes
    DelegatingLanguageClient → LanguageClient
  45. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  46. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  47. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  48. def workspaceFolders(): CompletableFuture[java.util.List[WorkspaceFolder]]
    Definition Classes
    LanguageClient
    Annotations
    @JsonRequest()

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from MetalsLanguageClient

Inherited from TreeViewClient

Inherited from LanguageClient

Inherited from AnyRef

Inherited from Any

Ungrouped