public interface TextDocumentService
| Modifier and Type | Method and Description |
|---|---|
default java.util.concurrent.CompletableFuture<java.util.List<org.eclipse.lsp4j.jsonrpc.messages.Either<Command,CodeAction>>> |
codeAction(CodeActionParams params)
The code action request is sent from the client to the server to compute
commands for a given text document and range.
|
default java.util.concurrent.CompletableFuture<java.util.List<? extends CodeLens>> |
codeLens(CodeLensParams params)
The code lens request is sent from the client to the server to compute
code lenses for a given text document.
|
default java.util.concurrent.CompletableFuture<java.util.List<ColorPresentation>> |
colorPresentation(ColorPresentationParams params)
The color presentation request is sent from the client to the server to obtain a list of presentations for a color
value at a given location.
|
default java.util.concurrent.CompletableFuture<org.eclipse.lsp4j.jsonrpc.messages.Either<java.util.List<CompletionItem>,CompletionList>> |
completion(CompletionParams position)
The Completion request is sent from the client to the server to compute
completion items at a given cursor position.
|
default java.util.concurrent.CompletableFuture<java.util.List<? extends Location>> |
definition(TextDocumentPositionParams position)
The goto definition request is sent from the client to the server to
resolve the definition location of a symbol at a given text document
position.
|
void |
didChange(DidChangeTextDocumentParams params)
The document change notification is sent from the client to the server to
signal changes to a text document.
|
void |
didClose(DidCloseTextDocumentParams params)
The document close notification is sent from the client to the server
when the document got closed in the client.
|
void |
didOpen(DidOpenTextDocumentParams params)
The document open notification is sent from the client to the server to
signal newly opened text documents.
|
void |
didSave(DidSaveTextDocumentParams params)
The document save notification is sent from the client to the server when
the document for saved in the client.
|
default java.util.concurrent.CompletableFuture<java.util.List<ColorInformation>> |
documentColor(DocumentColorParams params)
The document color request is sent from the client to the server to list all color refereces found in a given text
document.
|
default java.util.concurrent.CompletableFuture<java.util.List<? extends DocumentHighlight>> |
documentHighlight(TextDocumentPositionParams position)
The document highlight request is sent from the client to the server to
to resolve a document highlights for a given text document position.
|
default java.util.concurrent.CompletableFuture<java.util.List<DocumentLink>> |
documentLink(DocumentLinkParams params)
The document links request is sent from the client to the server to request the location of links in a document.
|
default java.util.concurrent.CompletableFuture<DocumentLink> |
documentLinkResolve(DocumentLink params)
The document link resolve request is sent from the client to the server to resolve the target of a given document link.
|
default java.util.concurrent.CompletableFuture<java.util.List<org.eclipse.lsp4j.jsonrpc.messages.Either<SymbolInformation,DocumentSymbol>>> |
documentSymbol(DocumentSymbolParams params)
The document symbol request is sent from the client to the server to list
all symbols found in a given text document.
|
default java.util.concurrent.CompletableFuture<java.util.List<FoldingRange>> |
foldingRange(FoldingRangeRequestParams params)
The folding range request is sent from the client to the server to return all folding
ranges found in a given text document.
|
default java.util.concurrent.CompletableFuture<java.util.List<? extends TextEdit>> |
formatting(DocumentFormattingParams params)
The document formatting request is sent from the client to the server to
format a whole document.
|
default java.util.concurrent.CompletableFuture<Hover> |
hover(TextDocumentPositionParams position)
The hover request is sent from the client to the server to request hover
information at a given text document position.
|
default java.util.concurrent.CompletableFuture<java.util.List<? extends Location>> |
implementation(TextDocumentPositionParams position)
The goto implementation request is sent from the client to the server to resolve
the implementation location of a symbol at a given text document position.
|
default java.util.concurrent.CompletableFuture<java.util.List<? extends TextEdit>> |
onTypeFormatting(DocumentOnTypeFormattingParams params)
The document on type formatting request is sent from the client to the
server to format parts of the document during typing.
|
default java.util.concurrent.CompletableFuture<org.eclipse.lsp4j.jsonrpc.messages.Either<Range,PrepareRenameResult>> |
prepareRename(TextDocumentPositionParams params)
The prepare rename request is sent from the client to the server to setup and test the validity of a rename
operation at a given location.
|
default java.util.concurrent.CompletableFuture<java.util.List<? extends TextEdit>> |
rangeFormatting(DocumentRangeFormattingParams params)
The document range formatting request is sent from the client to the
server to format a given range in a document.
|
default java.util.concurrent.CompletableFuture<java.util.List<? extends Location>> |
references(ReferenceParams params)
The references request is sent from the client to the server to resolve
project-wide references for the symbol denoted by the given text document
position.
|
default java.util.concurrent.CompletableFuture<WorkspaceEdit> |
rename(RenameParams params)
The rename request is sent from the client to the server to do a
workspace wide rename of a symbol.
|
default java.util.concurrent.CompletableFuture<CodeLens> |
resolveCodeLens(CodeLens unresolved)
The code lens resolve request is sent from the client to the server to
resolve the command for a given code lens item.
|
default java.util.concurrent.CompletableFuture<CompletionItem> |
resolveCompletionItem(CompletionItem unresolved)
The request is sent from the client to the server to resolve additional
information for a given completion item.
|
default java.util.concurrent.CompletableFuture<SignatureHelp> |
signatureHelp(TextDocumentPositionParams position)
The signature help request is sent from the client to the server to
request signature information at a given cursor position.
|
default java.util.concurrent.CompletableFuture<java.util.List<? extends Location>> |
typeDefinition(TextDocumentPositionParams position)
The goto type definition request is sent from the client to the server to resolve
the type definition location of a symbol at a given text document position.
|
default void |
willSave(WillSaveTextDocumentParams params)
The document will save notification is sent from the client to the server before the document is actually saved.
|
default java.util.concurrent.CompletableFuture<java.util.List<TextEdit>> |
willSaveWaitUntil(WillSaveTextDocumentParams params)
The document will save request is sent from the client to the server before the document is actually saved.
|
default java.util.concurrent.CompletableFuture<org.eclipse.lsp4j.jsonrpc.messages.Either<java.util.List<CompletionItem>,CompletionList>> completion(CompletionParams position)
default java.util.concurrent.CompletableFuture<CompletionItem> resolveCompletionItem(CompletionItem unresolved)
default java.util.concurrent.CompletableFuture<Hover> hover(TextDocumentPositionParams position)
default java.util.concurrent.CompletableFuture<SignatureHelp> signatureHelp(TextDocumentPositionParams position)
default java.util.concurrent.CompletableFuture<java.util.List<? extends Location>> definition(TextDocumentPositionParams position)
default java.util.concurrent.CompletableFuture<java.util.List<? extends Location>> typeDefinition(TextDocumentPositionParams position)
default java.util.concurrent.CompletableFuture<java.util.List<? extends Location>> implementation(TextDocumentPositionParams position)
default java.util.concurrent.CompletableFuture<java.util.List<? extends Location>> references(ReferenceParams params)
default java.util.concurrent.CompletableFuture<java.util.List<? extends DocumentHighlight>> documentHighlight(TextDocumentPositionParams position)
default java.util.concurrent.CompletableFuture<java.util.List<org.eclipse.lsp4j.jsonrpc.messages.Either<SymbolInformation,DocumentSymbol>>> documentSymbol(DocumentSymbolParams params)
default java.util.concurrent.CompletableFuture<java.util.List<org.eclipse.lsp4j.jsonrpc.messages.Either<Command,CodeAction>>> codeAction(CodeActionParams params)
default java.util.concurrent.CompletableFuture<java.util.List<? extends CodeLens>> codeLens(CodeLensParams params)
default java.util.concurrent.CompletableFuture<CodeLens> resolveCodeLens(CodeLens unresolved)
default java.util.concurrent.CompletableFuture<java.util.List<? extends TextEdit>> formatting(DocumentFormattingParams params)
default java.util.concurrent.CompletableFuture<java.util.List<? extends TextEdit>> rangeFormatting(DocumentRangeFormattingParams params)
default java.util.concurrent.CompletableFuture<java.util.List<? extends TextEdit>> onTypeFormatting(DocumentOnTypeFormattingParams params)
default java.util.concurrent.CompletableFuture<WorkspaceEdit> rename(RenameParams params)
void didOpen(DidOpenTextDocumentParams params)
void didChange(DidChangeTextDocumentParams params)
void didClose(DidCloseTextDocumentParams params)
void didSave(DidSaveTextDocumentParams params)
default void willSave(WillSaveTextDocumentParams params)
default java.util.concurrent.CompletableFuture<java.util.List<TextEdit>> willSaveWaitUntil(WillSaveTextDocumentParams params)
default java.util.concurrent.CompletableFuture<java.util.List<DocumentLink>> documentLink(DocumentLinkParams params)
default java.util.concurrent.CompletableFuture<DocumentLink> documentLinkResolve(DocumentLink params)
default java.util.concurrent.CompletableFuture<java.util.List<ColorInformation>> documentColor(DocumentColorParams params)
default java.util.concurrent.CompletableFuture<java.util.List<ColorPresentation>> colorPresentation(ColorPresentationParams params)
default java.util.concurrent.CompletableFuture<java.util.List<FoldingRange>> foldingRange(FoldingRangeRequestParams params)
default java.util.concurrent.CompletableFuture<org.eclipse.lsp4j.jsonrpc.messages.Either<Range,PrepareRenameResult>> prepareRename(TextDocumentPositionParams params)