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 -
Method Summary
Modifier and TypeMethodDescriptionvoiddidChangeConfiguration(org.eclipse.lsp4j.DidChangeConfigurationParams params) voiddidChangeWatchedFiles(org.eclipse.lsp4j.DidChangeWatchedFilesParams params) voiddidChangeWorkspaceFolders(org.eclipse.lsp4j.DidChangeWorkspaceFoldersParams params) voidexecuteClientCommand(org.eclipse.lsp4j.ExecuteCommandParams command) Executes a command via the client.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 serverMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.lemminx.services.extensions.commands.IXMLCommandService
beginCommandsRegistrationMethods inherited from interface org.eclipse.lsp4j.services.WorkspaceService
diagnostic, didCreateFiles, didDeleteFiles, didRenameFiles, resolveWorkspaceSymbol, symbol, willCreateFiles, willDeleteFiles, willRenameFiles
-
Constructor Details
-
XMLWorkspaceService
-
-
Method Details
-
executeCommand
- 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
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
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
-