Class Ek9LanguageServer

java.lang.Object
org.ek9lang.lsp.Ek9Service
org.ek9lang.lsp.Ek9LanguageServer
All Implemented Interfaces:
org.eclipse.lsp4j.services.LanguageClientAware, org.eclipse.lsp4j.services.LanguageServer, IEk9LanguageServer

final class Ek9LanguageServer extends Ek9Service implements IEk9LanguageServer
The Language Server Implementation into the modular EK9 compiler.
  • Constructor Details

    • Ek9LanguageServer

      Ek9LanguageServer(OsSupport osSupport)
      Uses part of the compiler as a plugin language server.
  • Method Details

    • getLanguageServer

      protected Ek9LanguageServer getLanguageServer()
      Overrides:
      getLanguageServer in class Ek9Service
    • connect

      public void connect(org.eclipse.lsp4j.services.LanguageClient client)
      Specified by:
      connect in interface org.eclipse.lsp4j.services.LanguageClientAware
    • initialize

      public CompletableFuture<org.eclipse.lsp4j.InitializeResult> initialize(org.eclipse.lsp4j.InitializeParams params)
      Specified by:
      initialize in interface org.eclipse.lsp4j.services.LanguageServer
    • getClient

      Optional<org.eclipse.lsp4j.services.LanguageClient> getClient()
    • getCompilerConfig

      Ek9CompilerConfig getCompilerConfig()
    • shutdown

      public CompletableFuture<Object> shutdown()
      Specified by:
      shutdown in interface org.eclipse.lsp4j.services.LanguageServer
    • exit

      public void exit()
      Specified by:
      exit in interface org.eclipse.lsp4j.services.LanguageServer
    • getTextDocumentService

      public Ek9TextDocumentService getTextDocumentService()
      Specified by:
      getTextDocumentService in interface org.eclipse.lsp4j.services.LanguageServer
    • getWorkspaceService

      public Ek9WorkspaceService getWorkspaceService()
      Specified by:
      getWorkspaceService in interface org.eclipse.lsp4j.services.LanguageServer