Class LanguageServerImpl

  • All Implemented Interfaces:
    org.eclipse.lsp4j.jsonrpc.Endpoint, org.eclipse.lsp4j.jsonrpc.json.JsonRpcMethodProvider, org.eclipse.lsp4j.services.LanguageClientAware, org.eclipse.lsp4j.services.LanguageServer, org.eclipse.lsp4j.services.NotebookDocumentService, org.eclipse.lsp4j.services.TextDocumentService, org.eclipse.lsp4j.services.WorkspaceService, ILanguageServerAccess.IBuildListener

    public class LanguageServerImpl
    extends java.lang.Object
    implements org.eclipse.lsp4j.services.LanguageServer, org.eclipse.lsp4j.services.WorkspaceService, org.eclipse.lsp4j.services.TextDocumentService, org.eclipse.lsp4j.services.NotebookDocumentService, org.eclipse.lsp4j.services.LanguageClientAware, org.eclipse.lsp4j.jsonrpc.Endpoint, org.eclipse.lsp4j.jsonrpc.json.JsonRpcMethodProvider, ILanguageServerAccess.IBuildListener
    Since:
    2.11
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      void afterBuild​(java.util.List<org.eclipse.xtext.resource.IResourceDescription.Delta> deltas)
      java.util.concurrent.CompletableFuture<java.util.List<org.eclipse.lsp4j.jsonrpc.messages.Either<org.eclipse.lsp4j.Command,​org.eclipse.lsp4j.CodeAction>>> codeAction​(org.eclipse.lsp4j.CodeActionParams params)
      The code action request is sent from the client to the server to compute commands for a given text document and range.
      protected java.util.List<org.eclipse.lsp4j.jsonrpc.messages.Either<org.eclipse.lsp4j.Command,​org.eclipse.lsp4j.CodeAction>> codeAction​(org.eclipse.lsp4j.CodeActionParams params, org.eclipse.xtext.util.CancelIndicator cancelIndicator)
      Compute the code action commands.
      java.util.concurrent.CompletableFuture<java.util.List<? extends org.eclipse.lsp4j.CodeLens>> codeLens​(org.eclipse.lsp4j.CodeLensParams params)
      The code lens request is sent from the client to the server to compute code lenses for a given text document.
      protected java.util.List<? extends org.eclipse.lsp4j.CodeLens> codeLens​(org.eclipse.lsp4j.CodeLensParams params, org.eclipse.xtext.util.CancelIndicator cancelIndicator)
      Compute the code lenses.
      java.util.concurrent.CompletableFuture<org.eclipse.lsp4j.jsonrpc.messages.Either<java.util.List<org.eclipse.lsp4j.CompletionItem>,​org.eclipse.lsp4j.CompletionList>> completion​(org.eclipse.lsp4j.CompletionParams params)
      The Completion request is sent from the client to the server to compute completion items at a given cursor position.
      protected org.eclipse.lsp4j.jsonrpc.messages.Either<java.util.List<org.eclipse.lsp4j.CompletionItem>,​org.eclipse.lsp4j.CompletionList> completion​(org.eclipse.xtext.util.CancelIndicator originalCancelIndicator, org.eclipse.lsp4j.CompletionParams params)
      Compute the completion items.
      void connect​(org.eclipse.lsp4j.services.LanguageClient client)  
      protected org.eclipse.lsp4j.ServerCapabilities createServerCapabilities​(org.eclipse.lsp4j.InitializeParams params)
      Configure the server capabilities for this instance.
      java.util.concurrent.CompletableFuture<org.eclipse.lsp4j.jsonrpc.messages.Either<java.util.List<? extends org.eclipse.lsp4j.Location>,​java.util.List<? extends org.eclipse.lsp4j.LocationLink>>> definition​(org.eclipse.lsp4j.DefinitionParams params)
      The goto definition request is sent from the client to the server to resolve the definition location of a symbol at a given text document position.
      protected org.eclipse.lsp4j.jsonrpc.messages.Either<java.util.List<? extends org.eclipse.lsp4j.Location>,​java.util.List<? extends org.eclipse.lsp4j.LocationLink>> definition​(org.eclipse.lsp4j.DefinitionParams params, org.eclipse.xtext.util.CancelIndicator cancelIndicator)
      Compute the definition.
      protected java.util.List<? extends org.eclipse.lsp4j.Location> definition​(org.eclipse.xtext.util.CancelIndicator cancelIndicator, org.eclipse.lsp4j.DefinitionParams params)
      Compute the definition.
      void didChange​(org.eclipse.lsp4j.DidChangeNotebookDocumentParams params)
      The change notification is sent from the client to the server when a notebook document changes.
      void didChange​(org.eclipse.lsp4j.DidChangeTextDocumentParams params)
      The document change notification is sent from the client to the server to signal changes to a text document.
      void didChangeConfiguration​(org.eclipse.lsp4j.DidChangeConfigurationParams params)
      A notification sent from the client to the server to signal the change of configuration settings.
      void didChangeWatchedFiles​(org.eclipse.lsp4j.DidChangeWatchedFilesParams params)
      The watched files notification is sent from the client to the server when the client detects changes to file watched by the language client.
      void didChangeWorkspaceFolders​(org.eclipse.lsp4j.DidChangeWorkspaceFoldersParams params)
      The workspace/didChangeWorkspaceFolders notification is sent from the client to the server to inform the server about workspace folder configuration changes.
      void didClose​(org.eclipse.lsp4j.DidCloseNotebookDocumentParams params)
      The close notification is sent from the client to the server when a notebook document is closed.
      void didClose​(org.eclipse.lsp4j.DidCloseTextDocumentParams params)
      The document close notification is sent from the client to the server when the document got closed in the client.
      void didOpen​(org.eclipse.lsp4j.DidOpenNotebookDocumentParams params)
      The open notification is sent from the client to the server when a notebook document is opened.
      void didOpen​(org.eclipse.lsp4j.DidOpenTextDocumentParams params)
      The document open notification is sent from the client to the server to signal newly opened text documents.
      void didSave​(org.eclipse.lsp4j.DidSaveNotebookDocumentParams params)
      The save notification is sent from the client to the server when a notebook document is saved.
      void didSave​(org.eclipse.lsp4j.DidSaveTextDocumentParams params)
      The document save notification is sent from the client to the server when the document for saved in the client.
      java.util.concurrent.CompletableFuture<java.util.List<? extends org.eclipse.lsp4j.DocumentHighlight>> documentHighlight​(org.eclipse.lsp4j.DocumentHighlightParams params)
      The document highlight request is sent from the client to the server to to resolve a document highlights for a given text document position.
      protected java.util.List<? extends org.eclipse.lsp4j.DocumentHighlight> documentHighlight​(org.eclipse.lsp4j.DocumentHighlightParams params, org.eclipse.xtext.util.CancelIndicator cancelIndicator)
      Compute the document highlights.
      java.util.concurrent.CompletableFuture<java.util.List<org.eclipse.lsp4j.jsonrpc.messages.Either<org.eclipse.lsp4j.SymbolInformation,​org.eclipse.lsp4j.DocumentSymbol>>> documentSymbol​(org.eclipse.lsp4j.DocumentSymbolParams params)
      The document symbol request is sent from the client to the server to list all symbols found in a given text document.
      protected java.util.List<org.eclipse.lsp4j.jsonrpc.messages.Either<org.eclipse.lsp4j.SymbolInformation,​org.eclipse.lsp4j.DocumentSymbol>> documentSymbol​(org.eclipse.lsp4j.DocumentSymbolParams params, org.eclipse.xtext.util.CancelIndicator cancelIndicator)
      Compute the symbol information.
      java.util.concurrent.CompletableFuture<java.lang.Object> executeCommand​(org.eclipse.lsp4j.ExecuteCommandParams params)
      The workspace/executeCommand request is sent from the client to the server to trigger command execution on the server.
      protected java.lang.Object executeCommand​(org.eclipse.lsp4j.ExecuteCommandParams params, org.eclipse.xtext.util.CancelIndicator cancelIndicator)
      Execute the command.
      void exit()
      A notification to ask the server to exit its process.
      java.util.concurrent.CompletableFuture<java.util.List<org.eclipse.lsp4j.FoldingRange>> foldingRange​(org.eclipse.lsp4j.FoldingRangeRequestParams params)
      The folding range request is sent from the client to the server to return all folding ranges found in a given text document.
      protected java.util.List<org.eclipse.lsp4j.FoldingRange> foldingRange​(org.eclipse.lsp4j.FoldingRangeRequestParams params, org.eclipse.xtext.util.CancelIndicator cancelIndicator)  
      java.util.concurrent.CompletableFuture<java.util.List<? extends org.eclipse.lsp4j.TextEdit>> formatting​(org.eclipse.lsp4j.DocumentFormattingParams params)
      The document formatting request is sent from the client to the server to format a whole document.
      protected java.util.List<? extends org.eclipse.lsp4j.TextEdit> formatting​(org.eclipse.lsp4j.DocumentFormattingParams params, org.eclipse.xtext.util.CancelIndicator cancelIndicator)
      Create the text edits for the formatter.
      protected org.eclipse.emf.common.util.URI getBaseDir​(org.eclipse.lsp4j.InitializeParams params)
      Deprecated.
      protected ExecutableCommandRegistry getCommandRegistry()  
      protected com.google.common.collect.Multimap<java.lang.String,​org.eclipse.lsp4j.jsonrpc.Endpoint> getExtensionProviders()  
      protected IDocumentSymbolService getIDocumentSymbolService​(org.eclipse.xtext.resource.IResourceServiceProvider serviceProvider)  
      protected org.eclipse.lsp4j.services.LanguageClient getLanguageClient()  
      protected ILanguageServerAccess getLanguageServerAccess()  
      protected org.eclipse.xtext.resource.IResourceServiceProvider.Registry getLanguagesRegistry()  
      org.eclipse.lsp4j.services.NotebookDocumentService getNotebookDocumentService()
      Provides access to the notebookDocument services.
      RequestManager getRequestManager()  
      protected org.eclipse.xtext.resource.IResourceServiceProvider getResourceServiceProvider​(org.eclipse.emf.common.util.URI uri)  
      protected <Service> Service getService​(org.eclipse.emf.common.util.URI uri, java.lang.Class<Service> type)  
      protected <Service> Service getService​(org.eclipse.xtext.resource.IResourceServiceProvider resourceServiceProvider, java.lang.Class<Service> type)  
      protected java.util.Map<java.lang.String,​org.eclipse.lsp4j.jsonrpc.json.JsonRpcMethod> getSupportedMethods()  
      org.eclipse.lsp4j.services.TextDocumentService getTextDocumentService()
      Provides access to the textDocument services.
      protected org.eclipse.emf.common.util.URI getURI​(org.eclipse.lsp4j.TextDocumentIdentifier documentIdentifier)
      Obtain the URI from the given identifier.
      protected org.eclipse.emf.common.util.URI getURI​(org.eclipse.lsp4j.TextDocumentItem documentItem)
      Obtain the URI from the given document item.
      protected org.eclipse.emf.common.util.URI getURI​(org.eclipse.lsp4j.TextDocumentPositionParams params)
      Obtain the URI from the given parameters.
      protected WorkspaceManager getWorkspaceManager()  
      protected org.eclipse.xtext.findReferences.IReferenceFinder.IResourceAccess getWorkspaceResourceAccess()  
      org.eclipse.lsp4j.services.WorkspaceService getWorkspaceService()
      Provides access to the workspace services.
      protected WorkspaceSymbolService getWorkspaceSymbolService()  
      java.util.concurrent.CompletableFuture<org.eclipse.lsp4j.Hover> hover​(org.eclipse.lsp4j.HoverParams params)
      The hover request is sent from the client to the server to request hover information at a given text document position.
      protected org.eclipse.lsp4j.Hover hover​(org.eclipse.lsp4j.HoverParams params, org.eclipse.xtext.util.CancelIndicator cancelIndicator)
      Compute the hover.
      java.util.concurrent.CompletableFuture<org.eclipse.lsp4j.InitializeResult> initialize​(org.eclipse.lsp4j.InitializeParams params)
      The initialize request is sent as the first request from the client to the server.
      void initialized​(org.eclipse.lsp4j.InitializedParams params)
      The initialized notification is sent from the client to the server after the client received the result of the initialize request, but before the client is sending any other request or notification to the server.
      protected void installURI​(java.util.List<? extends org.eclipse.lsp4j.CodeLens> codeLenses, java.lang.String uri)
      Put the document uri into the data of the given code lenses.
      protected boolean isHierarchicalDocumentSymbolSupport()
      true if the TextDocumentClientCapabilities explicitly declares the hierarchical document symbol support at LS initialization time.
      void notify​(java.lang.String method, java.lang.Object parameter)  
      java.util.concurrent.CompletableFuture<java.util.List<? extends org.eclipse.lsp4j.TextEdit>> onTypeFormatting​(org.eclipse.lsp4j.DocumentOnTypeFormattingParams params)
      The document on type formatting request is sent from the client to the server to format parts of the document during typing.
      java.util.concurrent.CompletableFuture<org.eclipse.lsp4j.jsonrpc.messages.Either3<org.eclipse.lsp4j.Range,​org.eclipse.lsp4j.PrepareRenameResult,​org.eclipse.lsp4j.PrepareRenameDefaultBehavior>> prepareRename​(org.eclipse.lsp4j.PrepareRenameParams params)
      The prepare rename request is sent from the client to the server to setup and test the validity of a rename operation at a given location.
      protected org.eclipse.lsp4j.jsonrpc.messages.Either3<org.eclipse.lsp4j.Range,​org.eclipse.lsp4j.PrepareRenameResult,​org.eclipse.lsp4j.PrepareRenameDefaultBehavior> prepareRename​(org.eclipse.lsp4j.PrepareRenameParams params, org.eclipse.xtext.util.CancelIndicator cancelIndicator)
      Prepare the rename operation.
      java.util.concurrent.CompletableFuture<java.util.List<? extends org.eclipse.lsp4j.TextEdit>> rangeFormatting​(org.eclipse.lsp4j.DocumentRangeFormattingParams params)
      The document range formatting request is sent from the client to the server to format a given range in a document.
      protected java.util.List<? extends org.eclipse.lsp4j.TextEdit> rangeFormatting​(org.eclipse.lsp4j.DocumentRangeFormattingParams params, org.eclipse.xtext.util.CancelIndicator cancelIndicator)
      Create the text edits for the formatter.
      java.util.concurrent.CompletableFuture<java.util.List<? extends org.eclipse.lsp4j.Location>> references​(org.eclipse.lsp4j.ReferenceParams params)
      The references request is sent from the client to the server to resolve project-wide references for the symbol denoted by the given text document position.
      protected java.util.List<? extends org.eclipse.lsp4j.Location> references​(org.eclipse.lsp4j.ReferenceParams params, org.eclipse.xtext.util.CancelIndicator cancelIndicator)
      Compute the references.
      java.util.concurrent.CompletableFuture<org.eclipse.lsp4j.WorkspaceEdit> rename​(org.eclipse.lsp4j.RenameParams renameParams)
      The rename request is sent from the client to the server to do a workspace wide rename of a symbol.
      protected org.eclipse.lsp4j.WorkspaceEdit rename​(org.eclipse.lsp4j.RenameParams renameParams, org.eclipse.xtext.util.CancelIndicator cancelIndicator)
      Compute the rename edits.
      java.util.concurrent.CompletableFuture<?> request​(java.lang.String method, java.lang.Object parameter)  
      protected org.eclipse.lsp4j.CodeLens resolveCodeLens​(org.eclipse.emf.common.util.URI uri, org.eclipse.lsp4j.CodeLens unresolved, org.eclipse.xtext.util.CancelIndicator cancelIndicator)
      Resolve the given code lens.
      java.util.concurrent.CompletableFuture<org.eclipse.lsp4j.CodeLens> resolveCodeLens​(org.eclipse.lsp4j.CodeLens unresolved)
      The code lens resolve request is sent from the client to the server to resolve the command for a given code lens item.
      java.util.concurrent.CompletableFuture<org.eclipse.lsp4j.CompletionItem> resolveCompletionItem​(org.eclipse.lsp4j.CompletionItem unresolved)
      The request is sent from the client to the server to resolve additional information for a given completion item.
      protected void runBuildable​(java.util.function.Supplier<? extends BuildManager.Buildable> newBuildable)
      Compute a buildable and run the build in a write action
      java.util.concurrent.CompletableFuture<org.eclipse.lsp4j.SemanticTokens> semanticTokensFull​(org.eclipse.lsp4j.SemanticTokensParams params)
      The textDocument/semanticTokens/full request is sent from the client to the server to return the semantic tokens for a whole file.
      protected org.eclipse.lsp4j.SemanticTokens semanticTokensFull​(org.eclipse.lsp4j.SemanticTokensParams params, org.eclipse.xtext.util.CancelIndicator cancelIndicator)  
      void setWorkspaceManager​(WorkspaceManager manager)  
      java.util.concurrent.CompletableFuture<java.lang.Object> shutdown()
      The shutdown request is sent from the client to the server.
      java.util.concurrent.CompletableFuture<org.eclipse.lsp4j.SignatureHelp> signatureHelp​(org.eclipse.lsp4j.SignatureHelpParams params)
      The signature help request is sent from the client to the server to request signature information at a given cursor position.
      protected org.eclipse.lsp4j.SignatureHelp signatureHelp​(org.eclipse.lsp4j.SignatureHelpParams params, org.eclipse.xtext.util.CancelIndicator cancelIndicator)
      Compute the signature help.
      java.util.Map<java.lang.String,​org.eclipse.lsp4j.jsonrpc.json.JsonRpcMethod> supportedMethods()  
      java.util.concurrent.CompletableFuture<org.eclipse.lsp4j.jsonrpc.messages.Either<java.util.List<? extends org.eclipse.lsp4j.SymbolInformation>,​java.util.List<? extends org.eclipse.lsp4j.WorkspaceSymbol>>> symbol​(org.eclipse.lsp4j.WorkspaceSymbolParams params)
      The workspace symbol request is sent from the client to the server to list project-wide symbols matching the query string.
      protected org.eclipse.lsp4j.jsonrpc.messages.Either<java.util.List<? extends org.eclipse.lsp4j.SymbolInformation>,​java.util.List<? extends org.eclipse.lsp4j.WorkspaceSymbol>> symbol​(org.eclipse.lsp4j.WorkspaceSymbolParams params, org.eclipse.xtext.util.CancelIndicator cancelIndicator)
      Compute the symbol information.
      protected BuildManager.Buildable toBuildable​(org.eclipse.lsp4j.DidChangeTextDocumentParams params)
      Evaluate the params and deduce the respective build command.
      protected BuildManager.Buildable toBuildable​(org.eclipse.lsp4j.DidChangeWatchedFilesParams params)
      Evaluate the params and deduce the respective build command.
      protected BuildManager.Buildable toBuildable​(org.eclipse.lsp4j.DidCloseTextDocumentParams params)
      Evaluate the params and deduce the respective build command.
      protected BuildManager.Buildable toBuildable​(org.eclipse.lsp4j.DidOpenTextDocumentParams params)
      Evaluate the params and deduce the respective build command.
      protected org.eclipse.lsp4j.Diagnostic toDiagnostic​(org.eclipse.xtext.validation.Issue issue)
      Convert the given issue to a diagnostic.
      protected java.util.List<org.eclipse.lsp4j.Diagnostic> toDiagnostics​(java.lang.Iterable<? extends org.eclipse.xtext.validation.Issue> issues)
      Convert the given issues to diagnostics.
      protected org.eclipse.lsp4j.DiagnosticSeverity toDiagnosticSeverity​(org.eclipse.xtext.diagnostics.Severity severity)
      Convert the severity to a lsp DiagnosticSeverity.
      protected org.eclipse.emf.common.util.URI uninstallURI​(org.eclipse.lsp4j.CodeLens lens)
      Remove the document uri from the data of the given code lense.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.eclipse.lsp4j.services.LanguageServer

        cancelProgress, initialized, setTrace
      • Methods inherited from interface org.eclipse.lsp4j.services.TextDocumentService

        callHierarchyIncomingCalls, callHierarchyOutgoingCalls, colorPresentation, declaration, diagnostic, documentColor, documentLink, documentLinkResolve, implementation, inlayHint, inlineValue, linkedEditingRange, moniker, prepareCallHierarchy, prepareTypeHierarchy, resolveCodeAction, resolveInlayHint, selectionRange, semanticTokensFullDelta, semanticTokensRange, typeDefinition, typeHierarchySubtypes, typeHierarchySupertypes, willSave, willSaveWaitUntil
      • Methods inherited from interface org.eclipse.lsp4j.services.WorkspaceService

        diagnostic, didCreateFiles, didDeleteFiles, didRenameFiles, resolveWorkspaceSymbol, willCreateFiles, willDeleteFiles, willRenameFiles
    • Constructor Detail

      • LanguageServerImpl

        public LanguageServerImpl()
    • Method Detail

      • setWorkspaceManager

        @Inject
        public void setWorkspaceManager​(WorkspaceManager manager)
      • initialize

        public java.util.concurrent.CompletableFuture<org.eclipse.lsp4j.InitializeResult> initialize​(org.eclipse.lsp4j.InitializeParams params)
        Description copied from interface: org.eclipse.lsp4j.services.LanguageServer
        The initialize request is sent as the first request from the client to the server.

        If the server receives requests or notifications before the initialize request, it should act as follows:

        • for a request, the response should be errored with: ResponseErrorCode.ServerNotInitialized. The message can be picked by the server.
        • notifications should be dropped, except for the exit notification. This will allow the client to exit a server without an initialize request.

        Until the server has responded to the initialize request with an InitializeResult, the client must not send any additional requests or notifications to the server.

        During the initialize request, the server is allowed to send the notifications window/showMessage, window/logMessage, and telemetry/event, as well as the request window/showMessageRequest, to the client.

        Specified by:
        initialize in interface org.eclipse.lsp4j.services.LanguageServer
      • createServerCapabilities

        protected org.eclipse.lsp4j.ServerCapabilities createServerCapabilities​(org.eclipse.lsp4j.InitializeParams params)
        Configure the server capabilities for this instance.
        Parameters:
        params - the initialization parameters
        Returns:
        the server capabilities
        Since:
        2.20
      • initialized

        public void initialized​(org.eclipse.lsp4j.InitializedParams params)
        Description copied from interface: org.eclipse.lsp4j.services.LanguageServer
        The initialized notification is sent from the client to the server after the client received the result of the initialize request, but before the client is sending any other request or notification to the server. The server can use the initialized notification, for example, to dynamically register capabilities.
        Specified by:
        initialized in interface org.eclipse.lsp4j.services.LanguageServer
      • getBaseDir

        @Deprecated
        protected org.eclipse.emf.common.util.URI getBaseDir​(org.eclipse.lsp4j.InitializeParams params)
        Deprecated.
        Compute the base dir.
      • connect

        public void connect​(org.eclipse.lsp4j.services.LanguageClient client)
        Specified by:
        connect in interface org.eclipse.lsp4j.services.LanguageClientAware
      • exit

        public void exit()
        Description copied from interface: org.eclipse.lsp4j.services.LanguageServer
        A notification to ask the server to exit its process.
        Specified by:
        exit in interface org.eclipse.lsp4j.services.LanguageServer
      • shutdown

        public java.util.concurrent.CompletableFuture<java.lang.Object> shutdown()
        Description copied from interface: org.eclipse.lsp4j.services.LanguageServer
        The shutdown request is sent from the client to the server. It asks the server to shutdown, but to not exit (otherwise the response might not be delivered correctly to the client). There is a separate exit notification that asks the server to exit.
        Specified by:
        shutdown in interface org.eclipse.lsp4j.services.LanguageServer
      • getTextDocumentService

        public org.eclipse.lsp4j.services.TextDocumentService getTextDocumentService()
        Description copied from interface: org.eclipse.lsp4j.services.LanguageServer
        Provides access to the textDocument services.
        Specified by:
        getTextDocumentService in interface org.eclipse.lsp4j.services.LanguageServer
      • getWorkspaceService

        public org.eclipse.lsp4j.services.WorkspaceService getWorkspaceService()
        Description copied from interface: org.eclipse.lsp4j.services.LanguageServer
        Provides access to the workspace services.
        Specified by:
        getWorkspaceService in interface org.eclipse.lsp4j.services.LanguageServer
      • getNotebookDocumentService

        public org.eclipse.lsp4j.services.NotebookDocumentService getNotebookDocumentService()
        Description copied from interface: org.eclipse.lsp4j.services.LanguageServer
        Provides access to the notebookDocument services.

        Since 3.17.0

        Specified by:
        getNotebookDocumentService in interface org.eclipse.lsp4j.services.LanguageServer
      • didOpen

        public void didOpen​(org.eclipse.lsp4j.DidOpenTextDocumentParams params)
        Description copied from interface: org.eclipse.lsp4j.services.TextDocumentService
        The document open notification is sent from the client to the server to signal newly opened text documents. The document's truth is now managed by the client and the server must not try to read the document's truth using the document's uri.

        Registration Options: TextDocumentRegistrationOptions

        Specified by:
        didOpen in interface org.eclipse.lsp4j.services.TextDocumentService
      • toBuildable

        protected BuildManager.Buildable toBuildable​(org.eclipse.lsp4j.DidOpenTextDocumentParams params)
        Evaluate the params and deduce the respective build command.
        Since:
        2.20
      • didChange

        public void didChange​(org.eclipse.lsp4j.DidChangeTextDocumentParams params)
        Description copied from interface: org.eclipse.lsp4j.services.TextDocumentService
        The document change notification is sent from the client to the server to signal changes to a text document.

        Registration Options: TextDocumentChangeRegistrationOptions

        Specified by:
        didChange in interface org.eclipse.lsp4j.services.TextDocumentService
      • toBuildable

        protected BuildManager.Buildable toBuildable​(org.eclipse.lsp4j.DidChangeTextDocumentParams params)
        Evaluate the params and deduce the respective build command.
      • didClose

        public void didClose​(org.eclipse.lsp4j.DidCloseTextDocumentParams params)
        Description copied from interface: org.eclipse.lsp4j.services.TextDocumentService
        The document close notification is sent from the client to the server when the document got closed in the client. The document's truth now exists where the document's uri points to (e.g. if the document's uri is a file uri the truth now exists on disk).

        Registration Options: TextDocumentRegistrationOptions

        Specified by:
        didClose in interface org.eclipse.lsp4j.services.TextDocumentService
      • toBuildable

        protected BuildManager.Buildable toBuildable​(org.eclipse.lsp4j.DidCloseTextDocumentParams params)
        Evaluate the params and deduce the respective build command.
      • didSave

        public void didSave​(org.eclipse.lsp4j.DidSaveTextDocumentParams params)
        Description copied from interface: org.eclipse.lsp4j.services.TextDocumentService
        The document save notification is sent from the client to the server when the document for saved in the client.

        Registration Options: TextDocumentSaveRegistrationOptions

        Specified by:
        didSave in interface org.eclipse.lsp4j.services.TextDocumentService
      • didChangeWatchedFiles

        public void didChangeWatchedFiles​(org.eclipse.lsp4j.DidChangeWatchedFilesParams params)
        Description copied from interface: org.eclipse.lsp4j.services.WorkspaceService
        The watched files notification is sent from the client to the server when the client detects changes to file watched by the language client.
        Specified by:
        didChangeWatchedFiles in interface org.eclipse.lsp4j.services.WorkspaceService
      • toBuildable

        protected BuildManager.Buildable toBuildable​(org.eclipse.lsp4j.DidChangeWatchedFilesParams params)
        Evaluate the params and deduce the respective build command.
      • runBuildable

        protected void runBuildable​(java.util.function.Supplier<? extends BuildManager.Buildable> newBuildable)
        Compute a buildable and run the build in a write action
        Parameters:
        newBuildable - the factory for the buildable.
        Since:
        2.20
      • didChangeConfiguration

        public void didChangeConfiguration​(org.eclipse.lsp4j.DidChangeConfigurationParams params)
        Description copied from interface: org.eclipse.lsp4j.services.WorkspaceService
        A notification sent from the client to the server to signal the change of configuration settings.
        Specified by:
        didChangeConfiguration in interface org.eclipse.lsp4j.services.WorkspaceService
      • didChangeWorkspaceFolders

        public void didChangeWorkspaceFolders​(org.eclipse.lsp4j.DidChangeWorkspaceFoldersParams params)
        Description copied from interface: org.eclipse.lsp4j.services.WorkspaceService
        The workspace/didChangeWorkspaceFolders notification is sent from the client to the server to inform the server about workspace folder configuration changes. The notification is sent by default if both ServerCapabilities/workspaceFolders and ClientCapabilities/workspace/workspaceFolders are true; or if the server has registered to receive this notification it first.

        Since 3.6.0

        Specified by:
        didChangeWorkspaceFolders in interface org.eclipse.lsp4j.services.WorkspaceService
        Since:
        2.21
      • toDiagnostics

        protected java.util.List<org.eclipse.lsp4j.Diagnostic> toDiagnostics​(java.lang.Iterable<? extends org.eclipse.xtext.validation.Issue> issues)
        Convert the given issues to diagnostics. Does not return any issue with severity ignore by default.
      • toDiagnostic

        protected org.eclipse.lsp4j.Diagnostic toDiagnostic​(org.eclipse.xtext.validation.Issue issue)
        Convert the given issue to a diagnostic.
      • toDiagnosticSeverity

        protected org.eclipse.lsp4j.DiagnosticSeverity toDiagnosticSeverity​(org.eclipse.xtext.diagnostics.Severity severity)
        Convert the severity to a lsp DiagnosticSeverity. Defaults to severity hint.
      • completion

        public java.util.concurrent.CompletableFuture<org.eclipse.lsp4j.jsonrpc.messages.Either<java.util.List<org.eclipse.lsp4j.CompletionItem>,​org.eclipse.lsp4j.CompletionList>> completion​(org.eclipse.lsp4j.CompletionParams params)
        Description copied from interface: org.eclipse.lsp4j.services.TextDocumentService
        The Completion request is sent from the client to the server to compute completion items at a given cursor position. Completion items are presented in the IntelliSense user interface. If computing complete completion items is expensive servers can additional provide a handler for the resolve completion item request. This request is sent when a completion item is selected in the user interface.

        Registration Options: CompletionRegistrationOptions

        Specified by:
        completion in interface org.eclipse.lsp4j.services.TextDocumentService
      • completion

        protected org.eclipse.lsp4j.jsonrpc.messages.Either<java.util.List<org.eclipse.lsp4j.CompletionItem>,​org.eclipse.lsp4j.CompletionList> completion​(org.eclipse.xtext.util.CancelIndicator originalCancelIndicator,
                                                                                                                                                                org.eclipse.lsp4j.CompletionParams params)
        Compute the completion items.
      • getURI

        protected org.eclipse.emf.common.util.URI getURI​(org.eclipse.lsp4j.TextDocumentPositionParams params)
        Obtain the URI from the given parameters.
        Since:
        2.20
      • getURI

        protected org.eclipse.emf.common.util.URI getURI​(org.eclipse.lsp4j.TextDocumentIdentifier documentIdentifier)
        Obtain the URI from the given identifier.
        Since:
        2.20
      • getURI

        protected org.eclipse.emf.common.util.URI getURI​(org.eclipse.lsp4j.TextDocumentItem documentItem)
        Obtain the URI from the given document item.
        Since:
        2.20
      • definition

        public java.util.concurrent.CompletableFuture<org.eclipse.lsp4j.jsonrpc.messages.Either<java.util.List<? extends org.eclipse.lsp4j.Location>,​java.util.List<? extends org.eclipse.lsp4j.LocationLink>>> definition​(org.eclipse.lsp4j.DefinitionParams params)
        Description copied from interface: org.eclipse.lsp4j.services.TextDocumentService
        The goto definition request is sent from the client to the server to resolve the definition location of a symbol at a given text document position.

        Registration Options: DefinitionRegistrationOptions

        Specified by:
        definition in interface org.eclipse.lsp4j.services.TextDocumentService
      • definition

        protected org.eclipse.lsp4j.jsonrpc.messages.Either<java.util.List<? extends org.eclipse.lsp4j.Location>,​java.util.List<? extends org.eclipse.lsp4j.LocationLink>> definition​(org.eclipse.lsp4j.DefinitionParams params,
                                                                                                                                                                                            org.eclipse.xtext.util.CancelIndicator cancelIndicator)
        Compute the definition. Executed in a read request.
        Since:
        2.20
      • definition

        protected java.util.List<? extends org.eclipse.lsp4j.Location> definition​(org.eclipse.xtext.util.CancelIndicator cancelIndicator,
                                                                                  org.eclipse.lsp4j.DefinitionParams params)
        Compute the definition.
      • references

        public java.util.concurrent.CompletableFuture<java.util.List<? extends org.eclipse.lsp4j.Location>> references​(org.eclipse.lsp4j.ReferenceParams params)
        Description copied from interface: org.eclipse.lsp4j.services.TextDocumentService
        The references request is sent from the client to the server to resolve project-wide references for the symbol denoted by the given text document position.

        Registration Options: ReferenceRegistrationOptions

        Specified by:
        references in interface org.eclipse.lsp4j.services.TextDocumentService
      • references

        protected java.util.List<? extends org.eclipse.lsp4j.Location> references​(org.eclipse.lsp4j.ReferenceParams params,
                                                                                  org.eclipse.xtext.util.CancelIndicator cancelIndicator)
        Compute the references. Executed in read request.
        Since:
        2.20
      • documentSymbol

        public java.util.concurrent.CompletableFuture<java.util.List<org.eclipse.lsp4j.jsonrpc.messages.Either<org.eclipse.lsp4j.SymbolInformation,​org.eclipse.lsp4j.DocumentSymbol>>> documentSymbol​(org.eclipse.lsp4j.DocumentSymbolParams params)
        Description copied from interface: org.eclipse.lsp4j.services.TextDocumentService
        The document symbol request is sent from the client to the server to list all symbols found in a given text document.

        Registration Options: TextDocumentRegistrationOptions

        Caveat: although the return type allows mixing the DocumentSymbol and SymbolInformation instances into a list do not do it because the clients cannot accept a heterogeneous list. A list of DocumentSymbol instances is only a valid return value if the textDocument.documentSymbol.hierarchicalDocumentSymbolSupport is true. More details on this difference between the LSP and the LSP4J can be found here.

        Servers should whenever possible return DocumentSymbol since it is the richer data structure.
        Specified by:
        documentSymbol in interface org.eclipse.lsp4j.services.TextDocumentService
      • documentSymbol

        protected java.util.List<org.eclipse.lsp4j.jsonrpc.messages.Either<org.eclipse.lsp4j.SymbolInformation,​org.eclipse.lsp4j.DocumentSymbol>> documentSymbol​(org.eclipse.lsp4j.DocumentSymbolParams params,
                                                                                                                                                                       org.eclipse.xtext.util.CancelIndicator cancelIndicator)
        Compute the symbol information. Executed in a read request.
        Since:
        2.20
      • getIDocumentSymbolService

        protected IDocumentSymbolService getIDocumentSymbolService​(org.eclipse.xtext.resource.IResourceServiceProvider serviceProvider)
        Since:
        2.16
      • isHierarchicalDocumentSymbolSupport

        protected boolean isHierarchicalDocumentSymbolSupport()
        true if the TextDocumentClientCapabilities explicitly declares the hierarchical document symbol support at LS initialization time. Otherwise, false.
      • symbol

        public java.util.concurrent.CompletableFuture<org.eclipse.lsp4j.jsonrpc.messages.Either<java.util.List<? extends org.eclipse.lsp4j.SymbolInformation>,​java.util.List<? extends org.eclipse.lsp4j.WorkspaceSymbol>>> symbol​(org.eclipse.lsp4j.WorkspaceSymbolParams params)
        Description copied from interface: org.eclipse.lsp4j.services.WorkspaceService
        The workspace symbol request is sent from the client to the server to list project-wide symbols matching the query string.

        Registration Options: WorkspaceSymbolRegistrationOptions

        Specified by:
        symbol in interface org.eclipse.lsp4j.services.WorkspaceService
      • symbol

        protected org.eclipse.lsp4j.jsonrpc.messages.Either<java.util.List<? extends org.eclipse.lsp4j.SymbolInformation>,​java.util.List<? extends org.eclipse.lsp4j.WorkspaceSymbol>> symbol​(org.eclipse.lsp4j.WorkspaceSymbolParams params,
                                                                                                                                                                                                    org.eclipse.xtext.util.CancelIndicator cancelIndicator)
        Compute the symbol information. Executed in a read request.
        Since:
        2.20
      • hover

        public java.util.concurrent.CompletableFuture<org.eclipse.lsp4j.Hover> hover​(org.eclipse.lsp4j.HoverParams params)
        Description copied from interface: org.eclipse.lsp4j.services.TextDocumentService
        The hover request is sent from the client to the server to request hover information at a given text document position.

        Registration Options: HoverRegistrationOptions

        Specified by:
        hover in interface org.eclipse.lsp4j.services.TextDocumentService
      • hover

        protected org.eclipse.lsp4j.Hover hover​(org.eclipse.lsp4j.HoverParams params,
                                                org.eclipse.xtext.util.CancelIndicator cancelIndicator)
        Compute the hover. Executed in a read request.
        Since:
        2.20
      • resolveCompletionItem

        public java.util.concurrent.CompletableFuture<org.eclipse.lsp4j.CompletionItem> resolveCompletionItem​(org.eclipse.lsp4j.CompletionItem unresolved)
        Description copied from interface: org.eclipse.lsp4j.services.TextDocumentService
        The request is sent from the client to the server to resolve additional information for a given completion item.
        Specified by:
        resolveCompletionItem in interface org.eclipse.lsp4j.services.TextDocumentService
      • signatureHelp

        public java.util.concurrent.CompletableFuture<org.eclipse.lsp4j.SignatureHelp> signatureHelp​(org.eclipse.lsp4j.SignatureHelpParams params)
        Description copied from interface: org.eclipse.lsp4j.services.TextDocumentService
        The signature help request is sent from the client to the server to request signature information at a given cursor position.

        Registration Options: SignatureHelpRegistrationOptions

        Specified by:
        signatureHelp in interface org.eclipse.lsp4j.services.TextDocumentService
      • signatureHelp

        protected org.eclipse.lsp4j.SignatureHelp signatureHelp​(org.eclipse.lsp4j.SignatureHelpParams params,
                                                                org.eclipse.xtext.util.CancelIndicator cancelIndicator)
        Compute the signature help. Executed in a read request.
        Since:
        2.20
      • documentHighlight

        public java.util.concurrent.CompletableFuture<java.util.List<? extends org.eclipse.lsp4j.DocumentHighlight>> documentHighlight​(org.eclipse.lsp4j.DocumentHighlightParams params)
        Description copied from interface: org.eclipse.lsp4j.services.TextDocumentService
        The document highlight request is sent from the client to the server to to resolve a document highlights for a given text document position.

        Registration Options: DocumentHighlightRegistrationOptions

        Specified by:
        documentHighlight in interface org.eclipse.lsp4j.services.TextDocumentService
      • documentHighlight

        protected java.util.List<? extends org.eclipse.lsp4j.DocumentHighlight> documentHighlight​(org.eclipse.lsp4j.DocumentHighlightParams params,
                                                                                                  org.eclipse.xtext.util.CancelIndicator cancelIndicator)
        Compute the document highlights. Executed in a read request.
        Since:
        2.20
      • codeAction

        public java.util.concurrent.CompletableFuture<java.util.List<org.eclipse.lsp4j.jsonrpc.messages.Either<org.eclipse.lsp4j.Command,​org.eclipse.lsp4j.CodeAction>>> codeAction​(org.eclipse.lsp4j.CodeActionParams params)
        Description copied from interface: org.eclipse.lsp4j.services.TextDocumentService
        The code action request is sent from the client to the server to compute commands for a given text document and range. These commands are typically code fixes to either fix problems or to beautify/refactor code.

        Registration Options: CodeActionRegistrationOptions

        Specified by:
        codeAction in interface org.eclipse.lsp4j.services.TextDocumentService
      • codeAction

        protected java.util.List<org.eclipse.lsp4j.jsonrpc.messages.Either<org.eclipse.lsp4j.Command,​org.eclipse.lsp4j.CodeAction>> codeAction​(org.eclipse.lsp4j.CodeActionParams params,
                                                                                                                                                     org.eclipse.xtext.util.CancelIndicator cancelIndicator)
        Compute the code action commands. Executed in a read request.
        Since:
        2.20
      • installURI

        protected void installURI​(java.util.List<? extends org.eclipse.lsp4j.CodeLens> codeLenses,
                                  java.lang.String uri)
        Put the document uri into the data of the given code lenses.
      • uninstallURI

        protected org.eclipse.emf.common.util.URI uninstallURI​(org.eclipse.lsp4j.CodeLens lens)
        Remove the document uri from the data of the given code lense.
      • codeLens

        public java.util.concurrent.CompletableFuture<java.util.List<? extends org.eclipse.lsp4j.CodeLens>> codeLens​(org.eclipse.lsp4j.CodeLensParams params)
        Description copied from interface: org.eclipse.lsp4j.services.TextDocumentService
        The code lens request is sent from the client to the server to compute code lenses for a given text document.

        Registration Options: CodeLensRegistrationOptions

        Specified by:
        codeLens in interface org.eclipse.lsp4j.services.TextDocumentService
      • codeLens

        protected java.util.List<? extends org.eclipse.lsp4j.CodeLens> codeLens​(org.eclipse.lsp4j.CodeLensParams params,
                                                                                org.eclipse.xtext.util.CancelIndicator cancelIndicator)
        Compute the code lenses. Executed in a read request.
        Since:
        2.20
      • resolveCodeLens

        public java.util.concurrent.CompletableFuture<org.eclipse.lsp4j.CodeLens> resolveCodeLens​(org.eclipse.lsp4j.CodeLens unresolved)
        Description copied from interface: org.eclipse.lsp4j.services.TextDocumentService
        The code lens resolve request is sent from the client to the server to resolve the command for a given code lens item.
        Specified by:
        resolveCodeLens in interface org.eclipse.lsp4j.services.TextDocumentService
      • resolveCodeLens

        protected org.eclipse.lsp4j.CodeLens resolveCodeLens​(org.eclipse.emf.common.util.URI uri,
                                                             org.eclipse.lsp4j.CodeLens unresolved,
                                                             org.eclipse.xtext.util.CancelIndicator cancelIndicator)
        Resolve the given code lens. Executed in a read request.
        Since:
        2.20
      • formatting

        public java.util.concurrent.CompletableFuture<java.util.List<? extends org.eclipse.lsp4j.TextEdit>> formatting​(org.eclipse.lsp4j.DocumentFormattingParams params)
        Description copied from interface: org.eclipse.lsp4j.services.TextDocumentService
        The document formatting request is sent from the client to the server to format a whole document.

        Registration Options: DocumentFormattingRegistrationOptions

        Specified by:
        formatting in interface org.eclipse.lsp4j.services.TextDocumentService
      • formatting

        protected java.util.List<? extends org.eclipse.lsp4j.TextEdit> formatting​(org.eclipse.lsp4j.DocumentFormattingParams params,
                                                                                  org.eclipse.xtext.util.CancelIndicator cancelIndicator)
        Create the text edits for the formatter. Executed in a read request.
        Since:
        2.20
      • rangeFormatting

        public java.util.concurrent.CompletableFuture<java.util.List<? extends org.eclipse.lsp4j.TextEdit>> rangeFormatting​(org.eclipse.lsp4j.DocumentRangeFormattingParams params)
        Description copied from interface: org.eclipse.lsp4j.services.TextDocumentService
        The document range formatting request is sent from the client to the server to format a given range in a document.

        Registration Options: DocumentRangeFormattingRegistrationOptions

        Specified by:
        rangeFormatting in interface org.eclipse.lsp4j.services.TextDocumentService
      • rangeFormatting

        protected java.util.List<? extends org.eclipse.lsp4j.TextEdit> rangeFormatting​(org.eclipse.lsp4j.DocumentRangeFormattingParams params,
                                                                                       org.eclipse.xtext.util.CancelIndicator cancelIndicator)
        Create the text edits for the formatter. Executed in a read request.
        Since:
        2.20
      • getService

        protected <Service> Service getService​(org.eclipse.emf.common.util.URI uri,
                                               java.lang.Class<Service> type)
        Parameters:
        uri - the current URI
        type - the type of the service
        Returns:
        the service instance or null if the language does not exist or if it does not expose the service.
        Since:
        2.20
      • getService

        protected <Service> Service getService​(org.eclipse.xtext.resource.IResourceServiceProvider resourceServiceProvider,
                                               java.lang.Class<Service> type)
        Type Parameters:
        Service - the type of the service
        Parameters:
        resourceServiceProvider - the resource service provider. May be null
        type - the type of the service
        Returns:
        the service instance or null if not available.
        Since:
        2.20
      • executeCommand

        public java.util.concurrent.CompletableFuture<java.lang.Object> executeCommand​(org.eclipse.lsp4j.ExecuteCommandParams params)
        Description copied from interface: org.eclipse.lsp4j.services.WorkspaceService
        The workspace/executeCommand request is sent from the client to the server to trigger command execution on the server. In most cases the server creates a WorkspaceEdit structure and applies the changes to the workspace using the request workspace/applyEdit which is sent from the server to the client.

        Registration Options: ExecuteCommandRegistrationOptions

        Specified by:
        executeCommand in interface org.eclipse.lsp4j.services.WorkspaceService
      • executeCommand

        protected java.lang.Object executeCommand​(org.eclipse.lsp4j.ExecuteCommandParams params,
                                                  org.eclipse.xtext.util.CancelIndicator cancelIndicator)
        Execute the command. Runs in a read request.
        Since:
        2.20
      • onTypeFormatting

        public java.util.concurrent.CompletableFuture<java.util.List<? extends org.eclipse.lsp4j.TextEdit>> onTypeFormatting​(org.eclipse.lsp4j.DocumentOnTypeFormattingParams params)
        Description copied from interface: org.eclipse.lsp4j.services.TextDocumentService
        The document on type formatting request is sent from the client to the server to format parts of the document during typing.

        Registration Options: DocumentOnTypeFormattingRegistrationOptions

        Specified by:
        onTypeFormatting in interface org.eclipse.lsp4j.services.TextDocumentService
      • rename

        public java.util.concurrent.CompletableFuture<org.eclipse.lsp4j.WorkspaceEdit> rename​(org.eclipse.lsp4j.RenameParams renameParams)
        Description copied from interface: org.eclipse.lsp4j.services.TextDocumentService
        The rename request is sent from the client to the server to do a workspace wide rename of a symbol.

        Registration Options: RenameRegistrationOptions

        Specified by:
        rename in interface org.eclipse.lsp4j.services.TextDocumentService
      • rename

        protected org.eclipse.lsp4j.WorkspaceEdit rename​(org.eclipse.lsp4j.RenameParams renameParams,
                                                         org.eclipse.xtext.util.CancelIndicator cancelIndicator)
        Compute the rename edits. Executed in a read request.
        Since:
        2.20
      • getResourceServiceProvider

        protected org.eclipse.xtext.resource.IResourceServiceProvider getResourceServiceProvider​(org.eclipse.emf.common.util.URI uri)
        Parameters:
        uri - the current URI
        Returns:
        the resource service provider or null.
      • prepareRename

        public java.util.concurrent.CompletableFuture<org.eclipse.lsp4j.jsonrpc.messages.Either3<org.eclipse.lsp4j.Range,​org.eclipse.lsp4j.PrepareRenameResult,​org.eclipse.lsp4j.PrepareRenameDefaultBehavior>> prepareRename​(org.eclipse.lsp4j.PrepareRenameParams params)
        Description copied from interface: org.eclipse.lsp4j.services.TextDocumentService
        The prepare rename request is sent from the client to the server to setup and test the validity of a rename operation at a given location.

        Since 3.12.0

        Specified by:
        prepareRename in interface org.eclipse.lsp4j.services.TextDocumentService
        Since:
        2.18
      • prepareRename

        protected org.eclipse.lsp4j.jsonrpc.messages.Either3<org.eclipse.lsp4j.Range,​org.eclipse.lsp4j.PrepareRenameResult,​org.eclipse.lsp4j.PrepareRenameDefaultBehavior> prepareRename​(org.eclipse.lsp4j.PrepareRenameParams params,
                                                                                                                                                                                                     org.eclipse.xtext.util.CancelIndicator cancelIndicator)
        Prepare the rename operation. Executed in a read request.
        Since:
        2.20
      • foldingRange

        public java.util.concurrent.CompletableFuture<java.util.List<org.eclipse.lsp4j.FoldingRange>> foldingRange​(org.eclipse.lsp4j.FoldingRangeRequestParams params)
        Description copied from interface: org.eclipse.lsp4j.services.TextDocumentService
        The folding range request is sent from the client to the server to return all folding ranges found in a given text document.

        Since 3.10.0

        Specified by:
        foldingRange in interface org.eclipse.lsp4j.services.TextDocumentService
        Since:
        2.26
      • foldingRange

        protected java.util.List<org.eclipse.lsp4j.FoldingRange> foldingRange​(org.eclipse.lsp4j.FoldingRangeRequestParams params,
                                                                              org.eclipse.xtext.util.CancelIndicator cancelIndicator)
        Since:
        2.26
      • notify

        public void notify​(java.lang.String method,
                           java.lang.Object parameter)
        Specified by:
        notify in interface org.eclipse.lsp4j.jsonrpc.Endpoint
      • request

        public java.util.concurrent.CompletableFuture<?> request​(java.lang.String method,
                                                                 java.lang.Object parameter)
        Specified by:
        request in interface org.eclipse.lsp4j.jsonrpc.Endpoint
      • supportedMethods

        public java.util.Map<java.lang.String,​org.eclipse.lsp4j.jsonrpc.json.JsonRpcMethod> supportedMethods()
        Specified by:
        supportedMethods in interface org.eclipse.lsp4j.jsonrpc.json.JsonRpcMethodProvider
      • getLanguageClient

        protected org.eclipse.lsp4j.services.LanguageClient getLanguageClient()
        Since:
        2.16
      • getExtensionProviders

        protected com.google.common.collect.Multimap<java.lang.String,​org.eclipse.lsp4j.jsonrpc.Endpoint> getExtensionProviders()
        Since:
        2.16
      • getSupportedMethods

        protected java.util.Map<java.lang.String,​org.eclipse.lsp4j.jsonrpc.json.JsonRpcMethod> getSupportedMethods()
        Since:
        2.16
      • getLanguagesRegistry

        protected org.eclipse.xtext.resource.IResourceServiceProvider.Registry getLanguagesRegistry()
        Since:
        2.16
      • getWorkspaceResourceAccess

        protected org.eclipse.xtext.findReferences.IReferenceFinder.IResourceAccess getWorkspaceResourceAccess()
        Since:
        2.16
      • getWorkspaceManager

        protected WorkspaceManager getWorkspaceManager()
        Since:
        2.16
      • didOpen

        public void didOpen​(org.eclipse.lsp4j.DidOpenNotebookDocumentParams params)
        Description copied from interface: org.eclipse.lsp4j.services.NotebookDocumentService
        The open notification is sent from the client to the server when a notebook document is opened. It is only sent by a client if the server requested the synchronization mode notebook in its ServerCapabilities.notebookDocumentSync capability.

        Registration Options: NotebookDocumentSyncRegistrationOptions

        Since 3.17.0

        Specified by:
        didOpen in interface org.eclipse.lsp4j.services.NotebookDocumentService
      • didChange

        public void didChange​(org.eclipse.lsp4j.DidChangeNotebookDocumentParams params)
        Description copied from interface: org.eclipse.lsp4j.services.NotebookDocumentService
        The change notification is sent from the client to the server when a notebook document changes. It is only sent by a client if the server requested the synchronization mode notebook in its ServerCapabilities.notebookDocumentSync capability.

        Registration Options: NotebookDocumentSyncRegistrationOptions

        Since 3.17.0

        Specified by:
        didChange in interface org.eclipse.lsp4j.services.NotebookDocumentService
      • didSave

        public void didSave​(org.eclipse.lsp4j.DidSaveNotebookDocumentParams params)
        Description copied from interface: org.eclipse.lsp4j.services.NotebookDocumentService
        The save notification is sent from the client to the server when a notebook document is saved. It is only sent by a client if the server requested the synchronization mode notebook in its ServerCapabilities.notebookDocumentSync capability.

        Registration Options: NotebookDocumentSyncRegistrationOptions

        Since 3.17.0

        Specified by:
        didSave in interface org.eclipse.lsp4j.services.NotebookDocumentService
      • didClose

        public void didClose​(org.eclipse.lsp4j.DidCloseNotebookDocumentParams params)
        Description copied from interface: org.eclipse.lsp4j.services.NotebookDocumentService
        The close notification is sent from the client to the server when a notebook document is closed. It is only sent by a client if the server requested the synchronization mode notebook in its ServerCapabilities.notebookDocumentSync capability.

        Registration Options: NotebookDocumentSyncRegistrationOptions

        Since 3.17.0

        Specified by:
        didClose in interface org.eclipse.lsp4j.services.NotebookDocumentService
      • semanticTokensFull

        public java.util.concurrent.CompletableFuture<org.eclipse.lsp4j.SemanticTokens> semanticTokensFull​(org.eclipse.lsp4j.SemanticTokensParams params)
        Description copied from interface: org.eclipse.lsp4j.services.TextDocumentService
        The textDocument/semanticTokens/full request is sent from the client to the server to return the semantic tokens for a whole file.

        Since 3.16.0

        Specified by:
        semanticTokensFull in interface org.eclipse.lsp4j.services.TextDocumentService
      • semanticTokensFull

        @Beta
        protected org.eclipse.lsp4j.SemanticTokens semanticTokensFull​(org.eclipse.lsp4j.SemanticTokensParams params,
                                                                      org.eclipse.xtext.util.CancelIndicator cancelIndicator)