Package org.ek9lang.lsp
Class Ek9TextDocumentService
java.lang.Object
org.ek9lang.lsp.Ek9Service
org.ek9lang.lsp.Ek9TextDocumentService
- All Implemented Interfaces:
org.eclipse.lsp4j.services.TextDocumentService
final class Ek9TextDocumentService
extends Ek9Service
implements org.eclipse.lsp4j.services.TextDocumentService
Part of the language server functionality.
Some methods could be implemented but Ignore the events as we pick
up changes by implementing didChangeWatchedFiles in the workspace service.
Note there are lots of other methods we will implement in here.
Like type hierarchy for example. See TextDocumentService for other methods we can implement.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionCompletableFuture
<org.eclipse.lsp4j.jsonrpc.messages.Either<List<org.eclipse.lsp4j.CompletionItem>, org.eclipse.lsp4j.CompletionList>> completion
(org.eclipse.lsp4j.CompletionParams position) void
didChange
(org.eclipse.lsp4j.DidChangeTextDocumentParams params) void
didClose
(org.eclipse.lsp4j.DidCloseTextDocumentParams params) void
didOpen
(org.eclipse.lsp4j.DidOpenTextDocumentParams params) void
didSave
(org.eclipse.lsp4j.DidSaveTextDocumentParams params) (package private) Ek9LanguageWords
CompletableFuture
<org.eclipse.lsp4j.Hover> hover
(org.eclipse.lsp4j.HoverParams params) Methods inherited from class org.ek9lang.lsp.Ek9Service
clearOldCompiledDiagnostics, getFilename, getFilename, getLanguageServer, 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.TextDocumentService
callHierarchyIncomingCalls, callHierarchyOutgoingCalls, codeAction, codeLens, colorPresentation, declaration, definition, diagnostic, documentColor, documentHighlight, documentLink, documentLinkResolve, documentSymbol, foldingRange, formatting, implementation, inlayHint, inlineValue, linkedEditingRange, moniker, onTypeFormatting, prepareCallHierarchy, prepareRename, prepareTypeHierarchy, rangeFormatting, references, rename, resolveCodeAction, resolveCodeLens, resolveCompletionItem, resolveInlayHint, selectionRange, semanticTokensFull, semanticTokensFullDelta, semanticTokensRange, signatureHelp, typeDefinition, typeHierarchySubtypes, typeHierarchySupertypes, willSave, willSaveWaitUntil
-
Constructor Details
-
Ek9TextDocumentService
Ek9TextDocumentService(Ek9LanguageServer languageServer)
-
-
Method Details
-
getLanguageWords
Ek9LanguageWords getLanguageWords() -
completion
public CompletableFuture<org.eclipse.lsp4j.jsonrpc.messages.Either<List<org.eclipse.lsp4j.CompletionItem>,org.eclipse.lsp4j.CompletionList>> completion(org.eclipse.lsp4j.CompletionParams position) - Specified by:
completion
in interfaceorg.eclipse.lsp4j.services.TextDocumentService
-
hover
- Specified by:
hover
in interfaceorg.eclipse.lsp4j.services.TextDocumentService
-
didOpen
public void didOpen(org.eclipse.lsp4j.DidOpenTextDocumentParams params) - Specified by:
didOpen
in interfaceorg.eclipse.lsp4j.services.TextDocumentService
-
didChange
public void didChange(org.eclipse.lsp4j.DidChangeTextDocumentParams params) - Specified by:
didChange
in interfaceorg.eclipse.lsp4j.services.TextDocumentService
-
didClose
public void didClose(org.eclipse.lsp4j.DidCloseTextDocumentParams params) - Specified by:
didClose
in interfaceorg.eclipse.lsp4j.services.TextDocumentService
-
didSave
public void didSave(org.eclipse.lsp4j.DidSaveTextDocumentParams params) - Specified by:
didSave
in interfaceorg.eclipse.lsp4j.services.TextDocumentService
-