Package org.eclipse.lemminx
Class XMLLanguageServer
java.lang.Object
org.eclipse.lemminx.XMLLanguageServer
- All Implemented Interfaces:
ParentProcessWatcher.ProcessLanguageServer,XMLLanguageServerAPI,IXMLDocumentProvider,IXMLNotificationService,IXMLValidationService,org.eclipse.lsp4j.services.LanguageServer
public class XMLLanguageServer
extends Object
implements ParentProcessWatcher.ProcessLanguageServer, XMLLanguageServerAPI, IXMLDocumentProvider, IXMLNotificationService, IXMLValidationService
XML language server.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncloseTag(org.eclipse.lsp4j.TextDocumentPositionParams params) voidexit()voidexit(int exitCode) All known documents XML server is working with at the momentgetDocument(String uri) Returns theDOMDocumentinstance from the givenuriand null otherwise.longReturns the current SharedSettings instanceReturns the telemetry manager.org.eclipse.lsp4j.services.TextDocumentServiceorg.eclipse.lsp4j.services.WorkspaceServiceCompletableFuture<org.eclipse.lsp4j.InitializeResult>initialize(org.eclipse.lsp4j.InitializeParams params) voidinitialized(org.eclipse.lsp4j.InitializedParams params) CompletableFuture<org.eclipse.lsp4j.Position>matchingTagPosition(org.eclipse.lsp4j.TextDocumentPositionParams params) voidsendNotification(String message, org.eclipse.lsp4j.MessageType messageType, org.eclipse.lsp4j.Command... commands) Sends a notification to the client with the providedmessageIf the client supports actionable notifications, the providedcommandswill be provided alongside the notification SeeActionableNotificationandXMLLanguageClientAPI.actionableNotification(org.eclipse.lemminx.customservice.ActionableNotification)voidsetClient(org.eclipse.lsp4j.services.LanguageClient languageClient) voidsetTrace(org.eclipse.lsp4j.SetTraceParams params) shutdown()voidupdateSettings(Object initOptions) Update XML settings configured from the client.voidvalidate(DOMDocument document, Map<String, Object> validationArgs) Performs XML document validationMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.lemminx.services.IXMLValidationService
validateMethods inherited from interface org.eclipse.lsp4j.services.LanguageServer
cancelProgress, getNotebookDocumentService, initialized
-
Constructor Details
-
XMLLanguageServer
public XMLLanguageServer()
-
-
Method Details
-
initialize
public CompletableFuture<org.eclipse.lsp4j.InitializeResult> initialize(org.eclipse.lsp4j.InitializeParams params) - Specified by:
initializein interfaceorg.eclipse.lsp4j.services.LanguageServer
-
initialized
public void initialized(org.eclipse.lsp4j.InitializedParams params) - Specified by:
initializedin interfaceorg.eclipse.lsp4j.services.LanguageServer
-
updateSettings
Update XML settings configured from the client.- Parameters:
initOptions- the XML settings
-
shutdown
- Specified by:
shutdownin interfaceorg.eclipse.lsp4j.services.LanguageServer
-
exit
public void exit()- Specified by:
exitin interfaceorg.eclipse.lsp4j.services.LanguageServer
-
exit
public void exit(int exitCode) - Specified by:
exitin interfaceParentProcessWatcher.ProcessLanguageServer
-
getTextDocumentService
public org.eclipse.lsp4j.services.TextDocumentService getTextDocumentService()- Specified by:
getTextDocumentServicein interfaceorg.eclipse.lsp4j.services.LanguageServer
-
getSynapseLanguageService
-
getWorkspaceService
public org.eclipse.lsp4j.services.WorkspaceService getWorkspaceService()- Specified by:
getWorkspaceServicein interfaceorg.eclipse.lsp4j.services.LanguageServer
-
setClient
public void setClient(org.eclipse.lsp4j.services.LanguageClient languageClient) -
getLanguageClient
-
getXMLLanguageService
-
schedule
-
getParentProcessId
public long getParentProcessId()- Specified by:
getParentProcessIdin interfaceParentProcessWatcher.ProcessLanguageServer
-
closeTag
public CompletableFuture<AutoCloseTagResponse> closeTag(org.eclipse.lsp4j.TextDocumentPositionParams params) - Specified by:
closeTagin interfaceXMLLanguageServerAPI
-
matchingTagPosition
public CompletableFuture<org.eclipse.lsp4j.Position> matchingTagPosition(org.eclipse.lsp4j.TextDocumentPositionParams params) - Specified by:
matchingTagPositionin interfaceXMLLanguageServerAPI
-
getSnippetCompletion
public CompletableFuture<SnippetCompletionResponse> getSnippetCompletion(LogMediatorSnippetRequest param) - Specified by:
getSnippetCompletionin interfaceXMLLanguageServerAPI
-
getDocument
Description copied from interface:IXMLDocumentProviderReturns theDOMDocumentinstance from the givenuriand null otherwise.- Specified by:
getDocumentin interfaceIXMLDocumentProvider- Parameters:
uri- the document URI.- Returns:
- the
DOMDocumentinstance from the givenuriand null otherwise.
-
sendNotification
public void sendNotification(String message, org.eclipse.lsp4j.MessageType messageType, org.eclipse.lsp4j.Command... commands) Description copied from interface:IXMLNotificationServiceSends a notification to the client with the providedmessageIf the client supports actionable notifications, the providedcommandswill be provided alongside the notification SeeActionableNotificationandXMLLanguageClientAPI.actionableNotification(org.eclipse.lemminx.customservice.ActionableNotification)- Specified by:
sendNotificationin interfaceIXMLNotificationService- Parameters:
message- the message to sendmessageType- the message typecommands- the commands to send alongside the notification
-
getAllDocuments
Description copied from interface:IXMLDocumentProviderAll known documents XML server is working with at the moment- Specified by:
getAllDocumentsin interfaceIXMLDocumentProvider- Returns:
- XML documents
-
validate
Description copied from interface:IXMLValidationServicePerforms XML document validation- Specified by:
validatein interfaceIXMLValidationService- Parameters:
document- the XML documentvalidationArgs- validation arguments.
-
getCapabilityManager
-
getTelemetryManager
Returns the telemetry manager.- Returns:
- the telemetry manager.
-
setTrace
public void setTrace(org.eclipse.lsp4j.SetTraceParams params) - Specified by:
setTracein interfaceorg.eclipse.lsp4j.services.LanguageServer
-