public interface IXMLCommandService
Modifier and Type | Interface and Description |
---|---|
static interface |
IXMLCommandService.IDelegateCommandHandler
Command handler to register with the workspace service
|
Modifier and Type | Method and Description |
---|---|
default void |
beginCommandsRegistration() |
default void |
endCommandsRegistration() |
CompletableFuture<Object> |
executeClientCommand(org.eclipse.lsp4j.ExecuteCommandParams command)
Executes a command via the client.
|
void |
registerCommand(String commandId,
IXMLCommandService.IDelegateCommandHandler handler)
Registers a command with the language server
|
void |
unregisterCommand(String commandId)
Unregisters the command from the language server
|
void registerCommand(String commandId, IXMLCommandService.IDelegateCommandHandler handler)
commandId
- unique id of the commandhandler
- command handler functionvoid unregisterCommand(String commandId)
commandId
- unique id of the command to unregisterCompletableFuture<Object> executeClientCommand(org.eclipse.lsp4j.ExecuteCommandParams command)
command
- the LSP commanddefault void beginCommandsRegistration()
default void endCommandsRegistration()
Copyright © 2022. All rights reserved.