Package org.ek9lang.lsp
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
The Language Server Implementation into the modular EK9 compiler.
-
Constructor Summary
ConstructorDescriptionEk9LanguageServer
(OsSupport osSupport) Uses part of the compiler as a plugin language server. -
Method Summary
Modifier and TypeMethodDescriptionvoid
connect
(org.eclipse.lsp4j.services.LanguageClient client) void
exit()
(package private) Optional
<org.eclipse.lsp4j.services.LanguageClient> (package private) Ek9CompilerConfig
protected Ek9LanguageServer
CompletableFuture
<org.eclipse.lsp4j.InitializeResult> initialize
(org.eclipse.lsp4j.InitializeParams params) shutdown()
Methods inherited from class org.ek9lang.lsp.Ek9Service
clearOldCompiledDiagnostics, getFilename, getFilename, getNearestToken, getPath, getWorkspace, reportOnCompiledSource, sendDiagnostics, sendErrorBackToClient, sendInfoBackToClient, sendLogBackToClient, sendLogMessageBackToClient, sendWarningBackToClient
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.eclipse.lsp4j.services.LanguageServer
cancelProgress, getNotebookDocumentService, initialized, initialized, setTrace
-
Constructor Details
-
Ek9LanguageServer
Ek9LanguageServer(OsSupport osSupport) Uses part of the compiler as a plugin language server.
-
-
Method Details
-
getLanguageServer
- Overrides:
getLanguageServer
in classEk9Service
-
connect
public void connect(org.eclipse.lsp4j.services.LanguageClient client) - Specified by:
connect
in interfaceorg.eclipse.lsp4j.services.LanguageClientAware
-
initialize
public CompletableFuture<org.eclipse.lsp4j.InitializeResult> initialize(org.eclipse.lsp4j.InitializeParams params) - Specified by:
initialize
in interfaceorg.eclipse.lsp4j.services.LanguageServer
-
getClient
Optional<org.eclipse.lsp4j.services.LanguageClient> getClient() -
getCompilerConfig
Ek9CompilerConfig getCompilerConfig() -
shutdown
- Specified by:
shutdown
in interfaceorg.eclipse.lsp4j.services.LanguageServer
-
exit
public void exit()- Specified by:
exit
in interfaceorg.eclipse.lsp4j.services.LanguageServer
-
getTextDocumentService
- Specified by:
getTextDocumentService
in interfaceorg.eclipse.lsp4j.services.LanguageServer
-
getWorkspaceService
- Specified by:
getWorkspaceService
in interfaceorg.eclipse.lsp4j.services.LanguageServer
-