public class XMLLanguageServer extends Object implements ParentProcessWatcher.ProcessLanguageServer, XMLLanguageServerAPI, IXMLDocumentProvider, IXMLNotificationService, IXMLValidationService, ProgressSupport
| Constructor and Description |
|---|
XMLLanguageServer() |
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<AutoCloseTagResponse> |
closeTag(org.eclipse.lsp4j.TextDocumentPositionParams params) |
CompletableFuture<Void> |
createProgress(org.eclipse.lsp4j.WorkDoneProgressCreateParams params)
Create a progress.
|
void |
exit() |
void |
exit(int exitCode) |
Collection<DOMDocument> |
getAllDocuments()
All known documents XML server is working with at the moment
|
XMLCapabilityManager |
getCapabilityManager() |
DOMDocument |
getDocument(String uri)
Returns the
DOMDocument instance from the given uri and
null otherwise. |
XMLLanguageClientAPI |
getLanguageClient() |
long |
getParentProcessId() |
SharedSettings |
getSharedSettings()
Returns the current SharedSettings instance
|
TelemetryManager |
getTelemetryManager()
Returns the telemetry manager.
|
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) |
boolean |
isWorkDoneProgressSupported()
Returns true if the LSP client can support LSP progress and false otherwise.
|
CompletableFuture<org.eclipse.lsp4j.Position> |
matchingTagPosition(org.eclipse.lsp4j.TextDocumentPositionParams params) |
void |
notifyProgress(String progressId,
org.eclipse.lsp4j.WorkDoneProgressNotification notification)
Notify the the progress notification with the given process id.
|
ScheduledFuture<?> |
schedule(Runnable command,
int delay,
TimeUnit unit) |
void |
sendNotification(String message,
org.eclipse.lsp4j.MessageType messageType,
org.eclipse.lsp4j.Command... commands)
Sends a notification to the client with the provided
message
If the client supports actionable notifications, the provided commands
will be provided alongside the notification
See ActionableNotification and
XMLLanguageClientAPI.actionableNotification(org.eclipse.lemminx.customservice.ActionableNotification) |
void |
setClient(org.eclipse.lsp4j.services.LanguageClient languageClient) |
void |
setTrace(org.eclipse.lsp4j.SetTraceParams params) |
CompletableFuture<Object> |
shutdown() |
void |
updateSettings(Object initOptions)
Update XML settings configured from the client.
|
void |
validate(DOMDocument document,
Map<String,Object> validationArgs)
Performs XML document validation
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcancelProgress, getNotebookDocumentService, initializedvalidatecreateProgressMonitor, createProgressMonitorpublic CompletableFuture<org.eclipse.lsp4j.InitializeResult> initialize(org.eclipse.lsp4j.InitializeParams params)
initialize in interface org.eclipse.lsp4j.services.LanguageServerpublic void initialized(org.eclipse.lsp4j.InitializedParams params)
initialized in interface org.eclipse.lsp4j.services.LanguageServerpublic void updateSettings(Object initOptions)
initOptions - the XML settingspublic CompletableFuture<Object> shutdown()
shutdown in interface org.eclipse.lsp4j.services.LanguageServerpublic void exit()
exit in interface org.eclipse.lsp4j.services.LanguageServerpublic void exit(int exitCode)
exit in interface ParentProcessWatcher.ProcessLanguageServerpublic org.eclipse.lsp4j.services.TextDocumentService getTextDocumentService()
getTextDocumentService in interface org.eclipse.lsp4j.services.LanguageServerpublic org.eclipse.lsp4j.services.WorkspaceService getWorkspaceService()
getWorkspaceService in interface org.eclipse.lsp4j.services.LanguageServerpublic void setClient(org.eclipse.lsp4j.services.LanguageClient languageClient)
public XMLLanguageClientAPI getLanguageClient()
public XMLLanguageService getXMLLanguageService()
public ScheduledFuture<?> schedule(Runnable command, int delay, TimeUnit unit)
public long getParentProcessId()
getParentProcessId in interface ParentProcessWatcher.ProcessLanguageServerpublic CompletableFuture<AutoCloseTagResponse> closeTag(org.eclipse.lsp4j.TextDocumentPositionParams params)
closeTag in interface XMLLanguageServerAPIpublic CompletableFuture<org.eclipse.lsp4j.Position> matchingTagPosition(org.eclipse.lsp4j.TextDocumentPositionParams params)
matchingTagPosition in interface XMLLanguageServerAPIpublic DOMDocument getDocument(String uri)
IXMLDocumentProviderDOMDocument instance from the given uri and
null otherwise.getDocument in interface IXMLDocumentProvideruri - the document URI.DOMDocument instance from the given uri and
null otherwise.public void sendNotification(String message, org.eclipse.lsp4j.MessageType messageType, org.eclipse.lsp4j.Command... commands)
IXMLNotificationServicemessage
If the client supports actionable notifications, the provided commands
will be provided alongside the notification
See ActionableNotification and
XMLLanguageClientAPI.actionableNotification(org.eclipse.lemminx.customservice.ActionableNotification)sendNotification in interface IXMLNotificationServicemessage - the message to sendmessageType - the message typecommands - the commands to send alongside the notificationpublic SharedSettings getSharedSettings()
IXMLNotificationServicegetSharedSettings in interface IXMLNotificationServicepublic Collection<DOMDocument> getAllDocuments()
IXMLDocumentProvidergetAllDocuments in interface IXMLDocumentProviderpublic void validate(DOMDocument document, Map<String,Object> validationArgs)
IXMLValidationServicevalidate in interface IXMLValidationServicedocument - the XML documentvalidationArgs - validation arguments.public XMLCapabilityManager getCapabilityManager()
public TelemetryManager getTelemetryManager()
public void setTrace(org.eclipse.lsp4j.SetTraceParams params)
setTrace in interface org.eclipse.lsp4j.services.LanguageServerpublic boolean isWorkDoneProgressSupported()
ProgressSupportisWorkDoneProgressSupported in interface ProgressSupportpublic CompletableFuture<Void> createProgress(org.eclipse.lsp4j.WorkDoneProgressCreateParams params)
ProgressSupportcreateProgress in interface ProgressSupportparams - the progress create parameterspublic void notifyProgress(String progressId, org.eclipse.lsp4j.WorkDoneProgressNotification notification)
ProgressSupportnotifyProgress in interface ProgressSupportprogressId - the progress id.notification - the progress notification.Copyright © 2024. All rights reserved.