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, wait
beginCommandsRegistration
public XMLWorkspaceService(XMLLanguageServer xmlLanguageServer)
public CompletableFuture<List<? extends org.eclipse.lsp4j.SymbolInformation>> symbol(org.eclipse.lsp4j.WorkspaceSymbolParams params)
symbol
in interface org.eclipse.lsp4j.services.WorkspaceService
public CompletableFuture<Object> executeCommand(org.eclipse.lsp4j.ExecuteCommandParams params)
executeCommand
in interface org.eclipse.lsp4j.services.WorkspaceService
public void didChangeConfiguration(org.eclipse.lsp4j.DidChangeConfigurationParams params)
didChangeConfiguration
in interface org.eclipse.lsp4j.services.WorkspaceService
public void didChangeWorkspaceFolders(org.eclipse.lsp4j.DidChangeWorkspaceFoldersParams params)
didChangeWorkspaceFolders
in interface org.eclipse.lsp4j.services.WorkspaceService
public void didChangeWatchedFiles(org.eclipse.lsp4j.DidChangeWatchedFilesParams params)
didChangeWatchedFiles
in interface org.eclipse.lsp4j.services.WorkspaceService
public void registerCommand(String commandId, IXMLCommandService.IDelegateCommandHandler handler)
IXMLCommandService
registerCommand
in interface IXMLCommandService
commandId
- unique id of the commandhandler
- command handler functionpublic void unregisterCommand(String commandId)
IXMLCommandService
unregisterCommand
in interface IXMLCommandService
commandId
- unique id of the command to unregisterpublic CompletableFuture<Object> executeClientCommand(org.eclipse.lsp4j.ExecuteCommandParams command)
IXMLCommandService
executeClientCommand
in interface IXMLCommandService
command
- the LSP commandpublic void endCommandsRegistration()
endCommandsRegistration
in interface IXMLCommandService
Copyright © 2021. All rights reserved.