public class XMLWorkspaceService extends Object implements org.eclipse.lsp4j.services.WorkspaceService, IXMLCommandService
IXMLCommandService.IDelegateCommandHandler| Constructor and Description |
|---|
XMLWorkspaceService(XMLLanguageServer xmlLanguageServer) |
| Modifier and Type | Method and Description |
|---|---|
void |
didChangeConfiguration(org.eclipse.lsp4j.DidChangeConfigurationParams params) |
void |
didChangeWatchedFiles(org.eclipse.lsp4j.DidChangeWatchedFilesParams params) |
void |
didChangeWorkspaceFolders(org.eclipse.lsp4j.DidChangeWorkspaceFoldersParams params) |
void |
endCommandsRegistration() |
CompletableFuture<Object> |
executeClientCommand(org.eclipse.lsp4j.ExecuteCommandParams command)
Executes a command via the client.
|
CompletableFuture<Object> |
executeCommand(org.eclipse.lsp4j.ExecuteCommandParams params) |
void |
registerCommand(String commandId,
IXMLCommandService.IDelegateCommandHandler handler)
Registers a command with the language server
|
CompletableFuture<List<? extends org.eclipse.lsp4j.SymbolInformation>> |
symbol(org.eclipse.lsp4j.WorkspaceSymbolParams params) |
void |
unregisterCommand(String commandId)
Unregisters the command from the language server
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbeginCommandsRegistrationpublic XMLWorkspaceService(XMLLanguageServer xmlLanguageServer)
public CompletableFuture<List<? extends org.eclipse.lsp4j.SymbolInformation>> symbol(org.eclipse.lsp4j.WorkspaceSymbolParams params)
symbol in interface org.eclipse.lsp4j.services.WorkspaceServicepublic CompletableFuture<Object> executeCommand(org.eclipse.lsp4j.ExecuteCommandParams params)
executeCommand in interface org.eclipse.lsp4j.services.WorkspaceServicepublic void didChangeConfiguration(org.eclipse.lsp4j.DidChangeConfigurationParams params)
didChangeConfiguration in interface org.eclipse.lsp4j.services.WorkspaceServicepublic void didChangeWorkspaceFolders(org.eclipse.lsp4j.DidChangeWorkspaceFoldersParams params)
didChangeWorkspaceFolders in interface org.eclipse.lsp4j.services.WorkspaceServicepublic void didChangeWatchedFiles(org.eclipse.lsp4j.DidChangeWatchedFilesParams params)
didChangeWatchedFiles in interface org.eclipse.lsp4j.services.WorkspaceServicepublic void registerCommand(String commandId, IXMLCommandService.IDelegateCommandHandler handler)
IXMLCommandServiceregisterCommand in interface IXMLCommandServicecommandId - unique id of the commandhandler - command handler functionpublic void unregisterCommand(String commandId)
IXMLCommandServiceunregisterCommand in interface IXMLCommandServicecommandId - unique id of the command to unregisterpublic CompletableFuture<Object> executeClientCommand(org.eclipse.lsp4j.ExecuteCommandParams command)
IXMLCommandServiceexecuteClientCommand in interface IXMLCommandServicecommand - the LSP commandpublic void endCommandsRegistration()
endCommandsRegistration in interface IXMLCommandServiceCopyright © 2021. All rights reserved.