Class NoOpLanguageClientStub

java.lang.Object
smile.util.lsp.NoOpLanguageClientStub
All Implemented Interfaces:
org.eclipse.lsp4j.services.LanguageClient

public class NoOpLanguageClientStub extends Object implements org.eclipse.lsp4j.services.LanguageClient
A no-op implementation of the LSP4J client interface.

Language servers send notifications back to the client (e.g. window/logMessage, textDocument/publishDiagnostics). We log them at DEBUG / INFO level and otherwise ignore them, since this client is used for read-only queries.

  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    logMessage(org.eclipse.lsp4j.MessageParams message)
     
    void
    publishDiagnostics(org.eclipse.lsp4j.PublishDiagnosticsParams diagnostics)
     
    void
    showMessage(org.eclipse.lsp4j.MessageParams messageParams)
     
    CompletableFuture<org.eclipse.lsp4j.MessageActionItem>
    showMessageRequest(org.eclipse.lsp4j.ShowMessageRequestParams requestParams)
     
    void
     

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.eclipse.lsp4j.services.LanguageClient

    applyEdit, configuration, createProgress, logTrace, notifyProgress, refreshCodeLenses, refreshDiagnostics, refreshFoldingRanges, refreshInlayHints, refreshInlineValues, refreshSemanticTokens, refreshTextDocumentContent, registerCapability, showDocument, unregisterCapability, workspaceFolders
  • Constructor Details

    • NoOpLanguageClientStub

      public NoOpLanguageClientStub()
      Constructor.
  • Method Details

    • telemetryEvent

      public void telemetryEvent(Object object)
      Specified by:
      telemetryEvent in interface org.eclipse.lsp4j.services.LanguageClient
    • publishDiagnostics

      public void publishDiagnostics(org.eclipse.lsp4j.PublishDiagnosticsParams diagnostics)
      Specified by:
      publishDiagnostics in interface org.eclipse.lsp4j.services.LanguageClient
    • showMessage

      public void showMessage(org.eclipse.lsp4j.MessageParams messageParams)
      Specified by:
      showMessage in interface org.eclipse.lsp4j.services.LanguageClient
    • showMessageRequest

      public CompletableFuture<org.eclipse.lsp4j.MessageActionItem> showMessageRequest(org.eclipse.lsp4j.ShowMessageRequestParams requestParams)
      Specified by:
      showMessageRequest in interface org.eclipse.lsp4j.services.LanguageClient
    • logMessage

      public void logMessage(org.eclipse.lsp4j.MessageParams message)
      Specified by:
      logMessage in interface org.eclipse.lsp4j.services.LanguageClient