public class XMLTextDocumentService extends Object implements org.eclipse.lsp4j.services.TextDocumentService
| Constructor and Description |
|---|
XMLTextDocumentService(XMLLanguageServer xmlLanguageServer) |
| Modifier and Type | Method and Description |
|---|---|
Collection<ModelTextDocument<DOMDocument>> |
allDocuments() |
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<DOMDocument,org.eclipse.lsp4j.jsonrpc.CancelChecker,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.DefinitionParams 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.DocumentHighlightParams 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.
|
LimitExceededWarner |
getLimitExceededWarner() |
XMLPreferences |
getPreferences() |
XMLCodeLensSettings |
getSharedCodeLensSettings() |
XMLFoldingSettings |
getSharedFoldingSettings() |
XMLFormattingOptions |
getSharedFormattingSettings() |
SharedSettings |
getSharedSettings() |
XMLSymbolSettings |
getSharedSymbolSettings() |
XMLValidationRootSettings |
getValidationSettings() |
CompletableFuture<org.eclipse.lsp4j.Hover> |
hover(org.eclipse.lsp4j.HoverParams params) |
boolean |
isIncrementalSupport() |
CompletableFuture<org.eclipse.lsp4j.LinkedEditingRanges> |
linkedEditingRange(org.eclipse.lsp4j.LinkedEditingRangeParams params) |
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.CodeAction> |
resolveCodeAction(org.eclipse.lsp4j.CodeAction unresolved) |
CompletableFuture<org.eclipse.lsp4j.CompletionItem> |
resolveCompletionItem(org.eclipse.lsp4j.CompletionItem unresolved) |
CompletableFuture<List<org.eclipse.lsp4j.SelectionRange>> |
selectionRange(org.eclipse.lsp4j.SelectionRangeParams params) |
CompletableFuture<org.eclipse.lsp4j.jsonrpc.messages.Either<List<? extends org.eclipse.lsp4j.Location>,List<? extends org.eclipse.lsp4j.LocationLink>>> |
typeDefinition(org.eclipse.lsp4j.TypeDefinitionParams params) |
void |
updateClientCapabilities(org.eclipse.lsp4j.ClientCapabilities capabilities,
ExtendedClientCapabilities extendedClientCapabilities) |
void |
updateCodeLensSettings(XMLCodeLensSettings newSettings) |
void |
updateCompletionSettings(XMLCompletionSettings newCompletion) |
void |
updatePreferences(XMLPreferences newPreferences) |
void |
updateSettings(Object settings)
Update settings of the language service.
|
void |
updateSymbolSettings(XMLSymbolSettings newSettings) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcallHierarchyIncomingCalls, callHierarchyOutgoingCalls, colorPresentation, declaration, diagnostic, documentColor, documentLinkResolve, implementation, inlayHint, inlineValue, moniker, onTypeFormatting, prepareCallHierarchy, prepareRename, prepareTypeHierarchy, resolveCodeLens, resolveInlayHint, semanticTokensFull, semanticTokensFullDelta, semanticTokensRange, signatureHelp, typeHierarchySubtypes, typeHierarchySupertypes, willSave, willSaveWaitUntilpublic 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.TextDocumentServicepublic CompletableFuture<org.eclipse.lsp4j.CompletionItem> resolveCompletionItem(org.eclipse.lsp4j.CompletionItem unresolved)
resolveCompletionItem in interface org.eclipse.lsp4j.services.TextDocumentServicepublic CompletableFuture<org.eclipse.lsp4j.Hover> hover(org.eclipse.lsp4j.HoverParams params)
hover in interface org.eclipse.lsp4j.services.TextDocumentServicepublic CompletableFuture<List<? extends org.eclipse.lsp4j.DocumentHighlight>> documentHighlight(org.eclipse.lsp4j.DocumentHighlightParams params)
documentHighlight in interface org.eclipse.lsp4j.services.TextDocumentServicepublic 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.TextDocumentServicepublic CompletableFuture<List<? extends org.eclipse.lsp4j.TextEdit>> formatting(org.eclipse.lsp4j.DocumentFormattingParams params)
formatting in interface org.eclipse.lsp4j.services.TextDocumentServicepublic CompletableFuture<List<? extends org.eclipse.lsp4j.TextEdit>> rangeFormatting(org.eclipse.lsp4j.DocumentRangeFormattingParams params)
rangeFormatting in interface org.eclipse.lsp4j.services.TextDocumentServicepublic CompletableFuture<org.eclipse.lsp4j.WorkspaceEdit> rename(org.eclipse.lsp4j.RenameParams params)
rename in interface org.eclipse.lsp4j.services.TextDocumentServicepublic void didOpen(org.eclipse.lsp4j.DidOpenTextDocumentParams params)
didOpen in interface org.eclipse.lsp4j.services.TextDocumentServicepublic void didChange(org.eclipse.lsp4j.DidChangeTextDocumentParams params)
didChange in interface org.eclipse.lsp4j.services.TextDocumentServicepublic void didClose(org.eclipse.lsp4j.DidCloseTextDocumentParams params)
didClose in interface org.eclipse.lsp4j.services.TextDocumentServicepublic CompletableFuture<List<org.eclipse.lsp4j.FoldingRange>> foldingRange(org.eclipse.lsp4j.FoldingRangeRequestParams params)
foldingRange in interface org.eclipse.lsp4j.services.TextDocumentServicepublic CompletableFuture<List<org.eclipse.lsp4j.DocumentLink>> documentLink(org.eclipse.lsp4j.DocumentLinkParams params)
documentLink in interface org.eclipse.lsp4j.services.TextDocumentServicepublic CompletableFuture<org.eclipse.lsp4j.jsonrpc.messages.Either<List<? extends org.eclipse.lsp4j.Location>,List<? extends org.eclipse.lsp4j.LocationLink>>> definition(org.eclipse.lsp4j.DefinitionParams params)
definition in interface org.eclipse.lsp4j.services.TextDocumentServicepublic CompletableFuture<org.eclipse.lsp4j.jsonrpc.messages.Either<List<? extends org.eclipse.lsp4j.Location>,List<? extends org.eclipse.lsp4j.LocationLink>>> typeDefinition(org.eclipse.lsp4j.TypeDefinitionParams params)
typeDefinition in interface org.eclipse.lsp4j.services.TextDocumentServicepublic CompletableFuture<List<? extends org.eclipse.lsp4j.Location>> references(org.eclipse.lsp4j.ReferenceParams params)
references in interface org.eclipse.lsp4j.services.TextDocumentServicepublic CompletableFuture<List<? extends org.eclipse.lsp4j.CodeLens>> codeLens(org.eclipse.lsp4j.CodeLensParams params)
codeLens in interface org.eclipse.lsp4j.services.TextDocumentServicepublic 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.TextDocumentServicepublic CompletableFuture<org.eclipse.lsp4j.CodeAction> resolveCodeAction(org.eclipse.lsp4j.CodeAction unresolved)
resolveCodeAction in interface org.eclipse.lsp4j.services.TextDocumentServicepublic CompletableFuture<List<org.eclipse.lsp4j.SelectionRange>> selectionRange(org.eclipse.lsp4j.SelectionRangeParams params)
selectionRange in interface org.eclipse.lsp4j.services.TextDocumentServicepublic CompletableFuture<org.eclipse.lsp4j.LinkedEditingRanges> linkedEditingRange(org.eclipse.lsp4j.LinkedEditingRangeParams params)
linkedEditingRange in interface org.eclipse.lsp4j.services.TextDocumentServicepublic void didSave(org.eclipse.lsp4j.DidSaveTextDocumentParams params)
didSave in interface org.eclipse.lsp4j.services.TextDocumentServicepublic void updateSettings(Object settings)
settings - public void updateCompletionSettings(XMLCompletionSettings newCompletion)
public void updateSymbolSettings(XMLSymbolSettings newSettings)
public void updateCodeLensSettings(XMLCodeLensSettings newSettings)
public void updatePreferences(XMLPreferences newPreferences)
public XMLSymbolSettings getSharedSymbolSettings()
public XMLCodeLensSettings getSharedCodeLensSettings()
public boolean isIncrementalSupport()
public XMLFoldingSettings getSharedFoldingSettings()
public XMLFormattingOptions getSharedFormattingSettings()
public XMLValidationRootSettings getValidationSettings()
public XMLPreferences getPreferences()
public SharedSettings getSharedSettings()
public ModelTextDocument<DOMDocument> getDocument(String uri)
uri - the uripublic Collection<ModelTextDocument<DOMDocument>> allDocuments()
public boolean documentIsOpen(String uri)
public <R> CompletableFuture<R> computeDOMAsync(org.eclipse.lsp4j.TextDocumentIdentifier documentIdentifier, BiFunction<DOMDocument,org.eclipse.lsp4j.jsonrpc.CancelChecker,R> code)
R - documentIdentifier - the document indetifier.code - a bi function that accepts a CancelChecker
and parsed DOMDocument and returns the to
be computed valuepublic LimitExceededWarner getLimitExceededWarner()
Copyright © 2022. All rights reserved.