Package org.eclipse.lemminx
Class XMLWorkspaceService
- java.lang.Object
-
- org.eclipse.lemminx.XMLWorkspaceService
-
- All Implemented Interfaces:
IXMLCommandService,org.eclipse.lsp4j.services.WorkspaceService
public class XMLWorkspaceService extends Object implements org.eclipse.lsp4j.services.WorkspaceService, IXMLCommandService
XML workspace service.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eclipse.lemminx.services.extensions.commands.IXMLCommandService
IXMLCommandService.IDelegateCommandHandler
-
-
Constructor Summary
Constructors Constructor Description XMLWorkspaceService(XMLLanguageServer xmlLanguageServer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddidChangeConfiguration(org.eclipse.lsp4j.DidChangeConfigurationParams params)voiddidChangeWatchedFiles(org.eclipse.lsp4j.DidChangeWatchedFilesParams params)voiddidChangeWorkspaceFolders(org.eclipse.lsp4j.DidChangeWorkspaceFoldersParams params)voidendCommandsRegistration()CompletableFuture<Object>executeClientCommand(org.eclipse.lsp4j.ExecuteCommandParams command)Executes a command via the client.CompletableFuture<Object>executeCommand(org.eclipse.lsp4j.ExecuteCommandParams params)voidregisterCommand(String commandId, IXMLCommandService.IDelegateCommandHandler handler)Registers a command with the language servervoidunregisterCommand(String commandId)Unregisters the command from the language server-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.eclipse.lemminx.services.extensions.commands.IXMLCommandService
beginCommandsRegistration
-
-
-
-
Constructor Detail
-
XMLWorkspaceService
public XMLWorkspaceService(XMLLanguageServer xmlLanguageServer)
-
-
Method Detail
-
executeCommand
public CompletableFuture<Object> executeCommand(org.eclipse.lsp4j.ExecuteCommandParams params)
- Specified by:
executeCommandin interfaceorg.eclipse.lsp4j.services.WorkspaceService
-
didChangeConfiguration
public void didChangeConfiguration(org.eclipse.lsp4j.DidChangeConfigurationParams params)
- Specified by:
didChangeConfigurationin interfaceorg.eclipse.lsp4j.services.WorkspaceService
-
didChangeWorkspaceFolders
public void didChangeWorkspaceFolders(org.eclipse.lsp4j.DidChangeWorkspaceFoldersParams params)
- Specified by:
didChangeWorkspaceFoldersin interfaceorg.eclipse.lsp4j.services.WorkspaceService
-
didChangeWatchedFiles
public void didChangeWatchedFiles(org.eclipse.lsp4j.DidChangeWatchedFilesParams params)
- Specified by:
didChangeWatchedFilesin interfaceorg.eclipse.lsp4j.services.WorkspaceService
-
registerCommand
public void registerCommand(String commandId, IXMLCommandService.IDelegateCommandHandler handler)
Description copied from interface:IXMLCommandServiceRegisters a command with the language server- Specified by:
registerCommandin interfaceIXMLCommandService- Parameters:
commandId- unique id of the commandhandler- command handler function
-
unregisterCommand
public void unregisterCommand(String commandId)
Description copied from interface:IXMLCommandServiceUnregisters the command from the language server- Specified by:
unregisterCommandin interfaceIXMLCommandService- Parameters:
commandId- unique id of the command to unregister
-
executeClientCommand
public CompletableFuture<Object> executeClientCommand(org.eclipse.lsp4j.ExecuteCommandParams command)
Description copied from interface:IXMLCommandServiceExecutes a command via the client. The command can be registered by any language server- Specified by:
executeClientCommandin interfaceIXMLCommandService- Parameters:
command- the LSP command- Returns:
- the result of the command
-
endCommandsRegistration
public void endCommandsRegistration()
- Specified by:
endCommandsRegistrationin interfaceIXMLCommandService
-
-