public class XMLTextDocumentService extends Object implements org.eclipse.lsp4j.services.TextDocumentService
Constructor and Description |
---|
XMLTextDocumentService(XMLLanguageServer xmlLanguageServer) |
Modifier and Type | Method and Description |
---|---|
CompletableFuture<List<org.eclipse.lsp4j.jsonrpc.messages.Either<org.eclipse.lsp4j.Command,org.eclipse.lsp4j.CodeAction>>> |
codeAction(org.eclipse.lsp4j.CodeActionParams params) |
CompletableFuture<List<? extends org.eclipse.lsp4j.CodeLens>> |
codeLens(org.eclipse.lsp4j.CodeLensParams params) |
CompletableFuture<org.eclipse.lsp4j.jsonrpc.messages.Either<List<org.eclipse.lsp4j.CompletionItem>,org.eclipse.lsp4j.CompletionList>> |
completion(org.eclipse.lsp4j.CompletionParams params) |
<R> CompletableFuture<R> |
computeDOMAsync(org.eclipse.lsp4j.TextDocumentIdentifier documentIdentifier,
BiFunction<org.eclipse.lsp4j.jsonrpc.CancelChecker,DOMDocument,R> code)
Compute the DOM Document for a given uri in a future and then apply the given
function.
|
CompletableFuture<org.eclipse.lsp4j.jsonrpc.messages.Either<List<? extends org.eclipse.lsp4j.Location>,List<? extends org.eclipse.lsp4j.LocationLink>>> |
definition(org.eclipse.lsp4j.TextDocumentPositionParams params) |
void |
didChange(org.eclipse.lsp4j.DidChangeTextDocumentParams params)
This method is triggered when the user types on an XML document.
|
void |
didClose(org.eclipse.lsp4j.DidCloseTextDocumentParams params) |
void |
didOpen(org.eclipse.lsp4j.DidOpenTextDocumentParams params) |
void |
didSave(org.eclipse.lsp4j.DidSaveTextDocumentParams params) |
CompletableFuture<List<? extends org.eclipse.lsp4j.DocumentHighlight>> |
documentHighlight(org.eclipse.lsp4j.TextDocumentPositionParams params) |
boolean |
documentIsOpen(String uri) |
CompletableFuture<List<org.eclipse.lsp4j.DocumentLink>> |
documentLink(org.eclipse.lsp4j.DocumentLinkParams params) |
CompletableFuture<List<org.eclipse.lsp4j.jsonrpc.messages.Either<org.eclipse.lsp4j.SymbolInformation,org.eclipse.lsp4j.DocumentSymbol>>> |
documentSymbol(org.eclipse.lsp4j.DocumentSymbolParams params) |
CompletableFuture<List<org.eclipse.lsp4j.FoldingRange>> |
foldingRange(org.eclipse.lsp4j.FoldingRangeRequestParams params) |
CompletableFuture<List<? extends org.eclipse.lsp4j.TextEdit>> |
formatting(org.eclipse.lsp4j.DocumentFormattingParams params) |
ModelTextDocument<DOMDocument> |
getDocument(String uri)
Returns the text document from the given uri.
|
XMLCodeLensSettings |
getSharedCodeLensSettings() |
XMLFormattingOptions |
getSharedFormattingSettings() |
SharedSettings |
getSharedSettings() |
XMLSymbolSettings |
getSharedSymbolSettings() |
XMLValidationSettings |
getValidationSettings() |
CompletableFuture<org.eclipse.lsp4j.Hover> |
hover(org.eclipse.lsp4j.TextDocumentPositionParams params) |
boolean |
isIncrementalSupport() |
CompletableFuture<List<? extends org.eclipse.lsp4j.TextEdit>> |
rangeFormatting(org.eclipse.lsp4j.DocumentRangeFormattingParams params) |
CompletableFuture<List<? extends org.eclipse.lsp4j.Location>> |
references(org.eclipse.lsp4j.ReferenceParams params) |
CompletableFuture<org.eclipse.lsp4j.WorkspaceEdit> |
rename(org.eclipse.lsp4j.RenameParams params) |
CompletableFuture<org.eclipse.lsp4j.jsonrpc.messages.Either<List<? extends org.eclipse.lsp4j.Location>,List<? extends org.eclipse.lsp4j.LocationLink>>> |
typeDefinition(org.eclipse.lsp4j.TextDocumentPositionParams params) |
void |
updateClientCapabilities(org.eclipse.lsp4j.ClientCapabilities capabilities,
ExtendedClientCapabilities extendedClientCapabilities) |
void |
updateCodeLensSettings(XMLCodeLensSettings newSettings) |
void |
updateCompletionSettings(XMLCompletionSettings newCompletion) |
void |
updateSettings(Object settings)
Update settings of the language service.
|
void |
updateSymbolSettings(XMLSymbolSettings newSettings) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
callHierarchy, colorPresentation, declaration, documentColor, documentLinkResolve, implementation, onTypeFormatting, prepareRename, resolveCodeLens, resolveCompletionItem, resolveTypeHierarchy, selectionRange, signatureHelp, typeHierarchy, willSave, willSaveWaitUntil
public XMLTextDocumentService(XMLLanguageServer xmlLanguageServer)
public void updateClientCapabilities(org.eclipse.lsp4j.ClientCapabilities capabilities, ExtendedClientCapabilities extendedClientCapabilities)
public CompletableFuture<org.eclipse.lsp4j.jsonrpc.messages.Either<List<org.eclipse.lsp4j.CompletionItem>,org.eclipse.lsp4j.CompletionList>> completion(org.eclipse.lsp4j.CompletionParams params)
completion
in interface org.eclipse.lsp4j.services.TextDocumentService
public CompletableFuture<org.eclipse.lsp4j.Hover> hover(org.eclipse.lsp4j.TextDocumentPositionParams params)
hover
in interface org.eclipse.lsp4j.services.TextDocumentService
public CompletableFuture<List<? extends org.eclipse.lsp4j.DocumentHighlight>> documentHighlight(org.eclipse.lsp4j.TextDocumentPositionParams params)
documentHighlight
in interface org.eclipse.lsp4j.services.TextDocumentService
public CompletableFuture<List<org.eclipse.lsp4j.jsonrpc.messages.Either<org.eclipse.lsp4j.SymbolInformation,org.eclipse.lsp4j.DocumentSymbol>>> documentSymbol(org.eclipse.lsp4j.DocumentSymbolParams params)
documentSymbol
in interface org.eclipse.lsp4j.services.TextDocumentService
public CompletableFuture<List<? extends org.eclipse.lsp4j.TextEdit>> formatting(org.eclipse.lsp4j.DocumentFormattingParams params)
formatting
in interface org.eclipse.lsp4j.services.TextDocumentService
public CompletableFuture<List<? extends org.eclipse.lsp4j.TextEdit>> rangeFormatting(org.eclipse.lsp4j.DocumentRangeFormattingParams params)
rangeFormatting
in interface org.eclipse.lsp4j.services.TextDocumentService
public CompletableFuture<org.eclipse.lsp4j.WorkspaceEdit> rename(org.eclipse.lsp4j.RenameParams params)
rename
in interface org.eclipse.lsp4j.services.TextDocumentService
public void didOpen(org.eclipse.lsp4j.DidOpenTextDocumentParams params)
didOpen
in interface org.eclipse.lsp4j.services.TextDocumentService
public void didChange(org.eclipse.lsp4j.DidChangeTextDocumentParams params)
didChange
in interface org.eclipse.lsp4j.services.TextDocumentService
public void didClose(org.eclipse.lsp4j.DidCloseTextDocumentParams params)
didClose
in interface org.eclipse.lsp4j.services.TextDocumentService
public CompletableFuture<List<org.eclipse.lsp4j.FoldingRange>> foldingRange(org.eclipse.lsp4j.FoldingRangeRequestParams params)
foldingRange
in interface org.eclipse.lsp4j.services.TextDocumentService
public CompletableFuture<List<org.eclipse.lsp4j.DocumentLink>> documentLink(org.eclipse.lsp4j.DocumentLinkParams params)
documentLink
in interface org.eclipse.lsp4j.services.TextDocumentService
public CompletableFuture<org.eclipse.lsp4j.jsonrpc.messages.Either<List<? extends org.eclipse.lsp4j.Location>,List<? extends org.eclipse.lsp4j.LocationLink>>> definition(org.eclipse.lsp4j.TextDocumentPositionParams params)
definition
in interface org.eclipse.lsp4j.services.TextDocumentService
public CompletableFuture<org.eclipse.lsp4j.jsonrpc.messages.Either<List<? extends org.eclipse.lsp4j.Location>,List<? extends org.eclipse.lsp4j.LocationLink>>> typeDefinition(org.eclipse.lsp4j.TextDocumentPositionParams params)
typeDefinition
in interface org.eclipse.lsp4j.services.TextDocumentService
public CompletableFuture<List<? extends org.eclipse.lsp4j.Location>> references(org.eclipse.lsp4j.ReferenceParams params)
references
in interface org.eclipse.lsp4j.services.TextDocumentService
public CompletableFuture<List<? extends org.eclipse.lsp4j.CodeLens>> codeLens(org.eclipse.lsp4j.CodeLensParams params)
codeLens
in interface org.eclipse.lsp4j.services.TextDocumentService
public CompletableFuture<List<org.eclipse.lsp4j.jsonrpc.messages.Either<org.eclipse.lsp4j.Command,org.eclipse.lsp4j.CodeAction>>> codeAction(org.eclipse.lsp4j.CodeActionParams params)
codeAction
in interface org.eclipse.lsp4j.services.TextDocumentService
public void didSave(org.eclipse.lsp4j.DidSaveTextDocumentParams params)
didSave
in interface org.eclipse.lsp4j.services.TextDocumentService
public void updateSettings(Object settings)
settings
- public void updateCompletionSettings(XMLCompletionSettings newCompletion)
public void updateSymbolSettings(XMLSymbolSettings newSettings)
public void updateCodeLensSettings(XMLCodeLensSettings newSettings)
public XMLSymbolSettings getSharedSymbolSettings()
public XMLCodeLensSettings getSharedCodeLensSettings()
public boolean isIncrementalSupport()
public XMLFormattingOptions getSharedFormattingSettings()
public XMLValidationSettings getValidationSettings()
public SharedSettings getSharedSettings()
public ModelTextDocument<DOMDocument> getDocument(String uri)
uri
- the uripublic boolean documentIsOpen(String uri)
public <R> CompletableFuture<R> computeDOMAsync(org.eclipse.lsp4j.TextDocumentIdentifier documentIdentifier, BiFunction<org.eclipse.lsp4j.jsonrpc.CancelChecker,DOMDocument,R> code)
R
- documentIdentifier
- the document indetifier.code
- a bi function that accepts a CancelChecker
and parsed DOMDocument
and returns the to
be computed valueCopyright © 2020. All rights reserved.