public class XMLLanguageServer extends Object implements org.eclipse.lsp4j.services.LanguageServer, ParentProcessWatcher.ProcessLanguageServer, XMLCustomService, IXMLDocumentProvider
Modifier and Type | Field and Description |
---|---|
XMLCapabilityManager |
capabilityManager |
Constructor and Description |
---|
XMLLanguageServer() |
Modifier and Type | Method and Description |
---|---|
CompletableFuture<AutoCloseTagResponse> |
closeTag(org.eclipse.lsp4j.TextDocumentPositionParams params) |
void |
exit() |
void |
exit(int exitCode) |
DOMDocument |
getDocument(String uri)
Returns the
DOMDocument instance from the given uri and
null otherwise. |
org.eclipse.lsp4j.services.LanguageClient |
getLanguageClient() |
long |
getParentProcessId() |
SharedSettings |
getSettings() |
org.eclipse.lsp4j.services.TextDocumentService |
getTextDocumentService() |
org.eclipse.lsp4j.services.WorkspaceService |
getWorkspaceService() |
XMLLanguageService |
getXMLLanguageService() |
CompletableFuture<org.eclipse.lsp4j.InitializeResult> |
initialize(org.eclipse.lsp4j.InitializeParams params) |
void |
initialized(org.eclipse.lsp4j.InitializedParams params) |
CompletableFuture<org.eclipse.lsp4j.Position> |
matchingTagPosition(org.eclipse.lsp4j.TextDocumentPositionParams params) |
ScheduledFuture<?> |
schedule(Runnable command,
int delay,
TimeUnit unit) |
void |
setClient(org.eclipse.lsp4j.services.LanguageClient languageClient) |
CompletableFuture<Object> |
shutdown() |
void |
updateSettings(Object initializationOptionsSettings)
Update XML settings configured from the client.
|
public XMLCapabilityManager capabilityManager
public CompletableFuture<org.eclipse.lsp4j.InitializeResult> initialize(org.eclipse.lsp4j.InitializeParams params)
initialize
in interface org.eclipse.lsp4j.services.LanguageServer
public void initialized(org.eclipse.lsp4j.InitializedParams params)
initialized
in interface org.eclipse.lsp4j.services.LanguageServer
public void updateSettings(Object initializationOptionsSettings)
initializationOptionsSettings
- the XML settingspublic CompletableFuture<Object> shutdown()
shutdown
in interface org.eclipse.lsp4j.services.LanguageServer
public void exit()
exit
in interface org.eclipse.lsp4j.services.LanguageServer
public void exit(int exitCode)
exit
in interface ParentProcessWatcher.ProcessLanguageServer
public org.eclipse.lsp4j.services.TextDocumentService getTextDocumentService()
getTextDocumentService
in interface org.eclipse.lsp4j.services.LanguageServer
public org.eclipse.lsp4j.services.WorkspaceService getWorkspaceService()
getWorkspaceService
in interface org.eclipse.lsp4j.services.LanguageServer
public void setClient(org.eclipse.lsp4j.services.LanguageClient languageClient)
public org.eclipse.lsp4j.services.LanguageClient getLanguageClient()
public XMLLanguageService getXMLLanguageService()
public SharedSettings getSettings()
public ScheduledFuture<?> schedule(Runnable command, int delay, TimeUnit unit)
public long getParentProcessId()
getParentProcessId
in interface ParentProcessWatcher.ProcessLanguageServer
public CompletableFuture<AutoCloseTagResponse> closeTag(org.eclipse.lsp4j.TextDocumentPositionParams params)
closeTag
in interface XMLCustomService
public CompletableFuture<org.eclipse.lsp4j.Position> matchingTagPosition(org.eclipse.lsp4j.TextDocumentPositionParams params)
matchingTagPosition
in interface XMLCustomService
public DOMDocument getDocument(String uri)
IXMLDocumentProvider
DOMDocument
instance from the given uri
and
null otherwise.getDocument
in interface IXMLDocumentProvider
uri
- the document URI.DOMDocument
instance from the given uri
and
null otherwise.Copyright © 2020. All rights reserved.