Class 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.
    • Constructor Detail

      • XMLWorkspaceService

        public XMLWorkspaceService​(XMLLanguageServer xmlLanguageServer)
    • Method Detail

      • executeCommand

        public CompletableFuture<Object> executeCommand​(org.eclipse.lsp4j.ExecuteCommandParams params)
        Specified by:
        executeCommand in interface org.eclipse.lsp4j.services.WorkspaceService
      • didChangeConfiguration

        public void didChangeConfiguration​(org.eclipse.lsp4j.DidChangeConfigurationParams params)
        Specified by:
        didChangeConfiguration in interface org.eclipse.lsp4j.services.WorkspaceService
      • didChangeWorkspaceFolders

        public void didChangeWorkspaceFolders​(org.eclipse.lsp4j.DidChangeWorkspaceFoldersParams params)
        Specified by:
        didChangeWorkspaceFolders in interface org.eclipse.lsp4j.services.WorkspaceService
      • didChangeWatchedFiles

        public void didChangeWatchedFiles​(org.eclipse.lsp4j.DidChangeWatchedFilesParams params)
        Specified by:
        didChangeWatchedFiles in interface org.eclipse.lsp4j.services.WorkspaceService
      • unregisterCommand

        public void unregisterCommand​(String commandId)
        Description copied from interface: IXMLCommandService
        Unregisters the command from the language server
        Specified by:
        unregisterCommand in interface IXMLCommandService
        Parameters:
        commandId - unique id of the command to unregister
      • executeClientCommand

        public CompletableFuture<Object> executeClientCommand​(org.eclipse.lsp4j.ExecuteCommandParams command)
        Description copied from interface: IXMLCommandService
        Executes a command via the client. The command can be registered by any language server
        Specified by:
        executeClientCommand in interface IXMLCommandService
        Parameters:
        command - the LSP command
        Returns:
        the result of the command