Class LanguageServerImpl
- java.lang.Object
-
- org.eclipse.xtext.ide.server.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
-
-
Constructor Summary
Constructors Constructor Description LanguageServerImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidafterBuild(java.util.List<org.eclipse.xtext.resource.IResourceDescription.Delta> deltas)Deprecated.please register aILanguageServerAccess.IBuildListenerdirectly throughILanguageServerAccess.addBuildListener(IBuildListener)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.voidconnect(org.eclipse.lsp4j.services.LanguageClient client)protected org.eclipse.lsp4j.ServerCapabilitiescreateServerCapabilities(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.voiddidChange(org.eclipse.lsp4j.DidChangeNotebookDocumentParams params)The change notification is sent from the client to the server when a notebook document changes.voiddidChange(org.eclipse.lsp4j.DidChangeTextDocumentParams params)The document change notification is sent from the client to the server to signal changes to a text document.voiddidChangeConfiguration(org.eclipse.lsp4j.DidChangeConfigurationParams params)A notification sent from the client to the server to signal the change of configuration settings.voiddidChangeWatchedFiles(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.voiddidChangeWorkspaceFolders(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.voiddidClose(org.eclipse.lsp4j.DidCloseNotebookDocumentParams params)The close notification is sent from the client to the server when a notebook document is closed.voiddidClose(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.voiddidOpen(org.eclipse.lsp4j.DidOpenNotebookDocumentParams params)The open notification is sent from the client to the server when a notebook document is opened.voiddidOpen(org.eclipse.lsp4j.DidOpenTextDocumentParams params)The document open notification is sent from the client to the server to signal newly opened text documents.voiddidSave(org.eclipse.lsp4j.DidSaveNotebookDocumentParams params)The save notification is sent from the client to the server when a notebook document is saved.voiddidSave(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.ObjectexecuteCommand(org.eclipse.lsp4j.ExecuteCommandParams params, org.eclipse.xtext.util.CancelIndicator cancelIndicator)Execute the command.voidexit()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.URIgetBaseDir(org.eclipse.lsp4j.InitializeParams params)Deprecated.protected ExecutableCommandRegistrygetCommandRegistry()protected com.google.common.collect.Multimap<java.lang.String,org.eclipse.lsp4j.jsonrpc.Endpoint>getExtensionProviders()protected IDocumentSymbolServicegetIDocumentSymbolService(org.eclipse.xtext.resource.IResourceServiceProvider serviceProvider)protected org.eclipse.lsp4j.services.LanguageClientgetLanguageClient()protected ILanguageServerAccessgetLanguageServerAccess()protected org.eclipse.xtext.resource.IResourceServiceProvider.RegistrygetLanguagesRegistry()org.eclipse.lsp4j.services.NotebookDocumentServicegetNotebookDocumentService()Provides access to the notebookDocument services.RequestManagergetRequestManager()protected org.eclipse.xtext.resource.IResourceServiceProvidergetResourceServiceProvider(org.eclipse.emf.common.util.URI uri)protected <Service> ServicegetService(org.eclipse.emf.common.util.URI uri, java.lang.Class<Service> type)protected <Service> ServicegetService(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.TextDocumentServicegetTextDocumentService()Provides access to the textDocument services.protected org.eclipse.emf.common.util.URIgetURI(org.eclipse.lsp4j.TextDocumentIdentifier documentIdentifier)Obtain the URI from the given identifier.protected org.eclipse.emf.common.util.URIgetURI(org.eclipse.lsp4j.TextDocumentItem documentItem)Obtain the URI from the given document item.protected org.eclipse.emf.common.util.URIgetURI(org.eclipse.lsp4j.TextDocumentPositionParams params)Obtain the URI from the given parameters.protected WorkspaceManagergetWorkspaceManager()protected org.eclipse.xtext.findReferences.IReferenceFinder.IResourceAccessgetWorkspaceResourceAccess()org.eclipse.lsp4j.services.WorkspaceServicegetWorkspaceService()Provides access to the workspace services.protected WorkspaceSymbolServicegetWorkspaceSymbolService()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.Hoverhover(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.voidinitialized(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 voidinstallURI(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 booleanisHierarchicalDocumentSymbolSupport()trueif theTextDocumentClientCapabilitiesexplicitly declares the hierarchical document symbol support at LS initialization time.voidnotify(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.WorkspaceEditrename(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.CodeLensresolveCodeLens(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 voidrunBuildable(java.util.function.Supplier<? extends BuildManager.Buildable> newBuildable)Compute a buildable and run the build in a write actionjava.util.concurrent.CompletableFuture<org.eclipse.lsp4j.SemanticTokens>semanticTokensFull(org.eclipse.lsp4j.SemanticTokensParams params)ThetextDocument/semanticTokens/fullrequest is sent from the client to the server to return the semantic tokens for a whole file.protected org.eclipse.lsp4j.SemanticTokenssemanticTokensFull(org.eclipse.lsp4j.SemanticTokensParams params, org.eclipse.xtext.util.CancelIndicator cancelIndicator)voidsetWorkspaceManager(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.SignatureHelpsignatureHelp(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.BuildabletoBuildable(org.eclipse.lsp4j.DidChangeTextDocumentParams params)Evaluate the params and deduce the respective build command.protected BuildManager.BuildabletoBuildable(org.eclipse.lsp4j.DidChangeWatchedFilesParams params)Evaluate the params and deduce the respective build command.protected BuildManager.BuildabletoBuildable(org.eclipse.lsp4j.DidCloseTextDocumentParams params)Evaluate the params and deduce the respective build command.protected BuildManager.BuildabletoBuildable(org.eclipse.lsp4j.DidOpenTextDocumentParams params)Evaluate the params and deduce the respective build command.protected org.eclipse.lsp4j.DiagnostictoDiagnostic(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.DiagnosticSeveritytoDiagnosticSeverity(org.eclipse.xtext.diagnostics.Severity severity)Convert the severity to a lspDiagnosticSeverity.protected org.eclipse.emf.common.util.URIuninstallURI(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
-
-
-
-
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.LanguageServerThe 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:
initializein interfaceorg.eclipse.lsp4j.services.LanguageServer
- for a request, the response should be errored with:
-
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.LanguageServerThe 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:
initializedin interfaceorg.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:
connectin interfaceorg.eclipse.lsp4j.services.LanguageClientAware
-
exit
public void exit()
Description copied from interface:org.eclipse.lsp4j.services.LanguageServerA notification to ask the server to exit its process.- Specified by:
exitin interfaceorg.eclipse.lsp4j.services.LanguageServer
-
shutdown
public java.util.concurrent.CompletableFuture<java.lang.Object> shutdown()
Description copied from interface:org.eclipse.lsp4j.services.LanguageServerThe 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:
shutdownin interfaceorg.eclipse.lsp4j.services.LanguageServer
-
getTextDocumentService
public org.eclipse.lsp4j.services.TextDocumentService getTextDocumentService()
Description copied from interface:org.eclipse.lsp4j.services.LanguageServerProvides access to the textDocument services.- Specified by:
getTextDocumentServicein interfaceorg.eclipse.lsp4j.services.LanguageServer
-
getWorkspaceService
public org.eclipse.lsp4j.services.WorkspaceService getWorkspaceService()
Description copied from interface:org.eclipse.lsp4j.services.LanguageServerProvides access to the workspace services.- Specified by:
getWorkspaceServicein interfaceorg.eclipse.lsp4j.services.LanguageServer
-
getNotebookDocumentService
public org.eclipse.lsp4j.services.NotebookDocumentService getNotebookDocumentService()
Description copied from interface:org.eclipse.lsp4j.services.LanguageServerProvides access to the notebookDocument services.Since 3.17.0
- Specified by:
getNotebookDocumentServicein interfaceorg.eclipse.lsp4j.services.LanguageServer
-
didOpen
public void didOpen(org.eclipse.lsp4j.DidOpenTextDocumentParams params)
Description copied from interface:org.eclipse.lsp4j.services.TextDocumentServiceThe 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:
didOpenin interfaceorg.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.TextDocumentServiceThe document change notification is sent from the client to the server to signal changes to a text document.Registration Options:
TextDocumentChangeRegistrationOptions- Specified by:
didChangein interfaceorg.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.TextDocumentServiceThe 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:
didClosein interfaceorg.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.TextDocumentServiceThe document save notification is sent from the client to the server when the document for saved in the client.Registration Options:
TextDocumentSaveRegistrationOptions- Specified by:
didSavein interfaceorg.eclipse.lsp4j.services.TextDocumentService
-
didChangeWatchedFiles
public void didChangeWatchedFiles(org.eclipse.lsp4j.DidChangeWatchedFilesParams params)
Description copied from interface:org.eclipse.lsp4j.services.WorkspaceServiceThe 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:
didChangeWatchedFilesin interfaceorg.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.WorkspaceServiceA notification sent from the client to the server to signal the change of configuration settings.- Specified by:
didChangeConfigurationin interfaceorg.eclipse.lsp4j.services.WorkspaceService
-
didChangeWorkspaceFolders
public void didChangeWorkspaceFolders(org.eclipse.lsp4j.DidChangeWorkspaceFoldersParams params)
Description copied from interface:org.eclipse.lsp4j.services.WorkspaceServiceThe 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:
didChangeWorkspaceFoldersin interfaceorg.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 severityignoreby 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 lspDiagnosticSeverity. Defaults to severityhint.
-
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.TextDocumentServiceThe 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:
completionin interfaceorg.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.TextDocumentServiceThe 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:
definitionin interfaceorg.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.TextDocumentServiceThe 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:
referencesin interfaceorg.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.TextDocumentServiceThe document symbol request is sent from the client to the server to list all symbols found in a given text document.Registration Options:
TextDocumentRegistrationOptionsCaveat: although the return type allows mixing the
Servers should whenever possible returnDocumentSymbolandSymbolInformationinstances into a list do not do it because the clients cannot accept a heterogeneous list. A list ofDocumentSymbolinstances is only a valid return value if thetextDocument.documentSymbol.hierarchicalDocumentSymbolSupportistrue. More details on this difference between the LSP and the LSP4J can be found here.DocumentSymbolsince it is the richer data structure.- Specified by:
documentSymbolin interfaceorg.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()
trueif theTextDocumentClientCapabilitiesexplicitly 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.WorkspaceServiceThe 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:
symbolin interfaceorg.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.TextDocumentServiceThe 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:
hoverin interfaceorg.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.TextDocumentServiceThe request is sent from the client to the server to resolve additional information for a given completion item.- Specified by:
resolveCompletionItemin interfaceorg.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.TextDocumentServiceThe 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:
signatureHelpin interfaceorg.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.TextDocumentServiceThe 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:
documentHighlightin interfaceorg.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.TextDocumentServiceThe 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:
codeActionin interfaceorg.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.TextDocumentServiceThe 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:
codeLensin interfaceorg.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.TextDocumentServiceThe code lens resolve request is sent from the client to the server to resolve the command for a given code lens item.- Specified by:
resolveCodeLensin interfaceorg.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.TextDocumentServiceThe document formatting request is sent from the client to the server to format a whole document.Registration Options:
DocumentFormattingRegistrationOptions- Specified by:
formattingin interfaceorg.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.TextDocumentServiceThe 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:
rangeFormattingin interfaceorg.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 URItype- 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 nulltype- 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.WorkspaceServiceThe 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:
executeCommandin interfaceorg.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.TextDocumentServiceThe 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:
onTypeFormattingin interfaceorg.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.TextDocumentServiceThe rename request is sent from the client to the server to do a workspace wide rename of a symbol.Registration Options:
RenameRegistrationOptions- Specified by:
renamein interfaceorg.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.TextDocumentServiceThe 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:
prepareRenamein interfaceorg.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.TextDocumentServiceThe 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:
foldingRangein interfaceorg.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:
notifyin interfaceorg.eclipse.lsp4j.jsonrpc.Endpoint
-
request
public java.util.concurrent.CompletableFuture<?> request(java.lang.String method, java.lang.Object parameter)- Specified by:
requestin interfaceorg.eclipse.lsp4j.jsonrpc.Endpoint
-
supportedMethods
public java.util.Map<java.lang.String,org.eclipse.lsp4j.jsonrpc.json.JsonRpcMethod> supportedMethods()
- Specified by:
supportedMethodsin interfaceorg.eclipse.lsp4j.jsonrpc.json.JsonRpcMethodProvider
-
afterBuild
@Deprecated public void afterBuild(java.util.List<org.eclipse.xtext.resource.IResourceDescription.Delta> deltas)
Deprecated.please register aILanguageServerAccess.IBuildListenerdirectly throughILanguageServerAccess.addBuildListener(IBuildListener)- Specified by:
afterBuildin interfaceILanguageServerAccess.IBuildListener
-
getLanguageServerAccess
protected ILanguageServerAccess getLanguageServerAccess()
- Since:
- 2.16
-
getLanguageClient
protected org.eclipse.lsp4j.services.LanguageClient getLanguageClient()
- Since:
- 2.16
-
getCommandRegistry
protected ExecutableCommandRegistry getCommandRegistry()
- 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
-
getWorkspaceSymbolService
protected WorkspaceSymbolService getWorkspaceSymbolService()
- Since:
- 2.16
-
getRequestManager
public RequestManager getRequestManager()
-
didOpen
public void didOpen(org.eclipse.lsp4j.DidOpenNotebookDocumentParams params)
Description copied from interface:org.eclipse.lsp4j.services.NotebookDocumentServiceThe 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 modenotebookin itsServerCapabilities.notebookDocumentSynccapability.Registration Options:
NotebookDocumentSyncRegistrationOptionsSince 3.17.0
- Specified by:
didOpenin interfaceorg.eclipse.lsp4j.services.NotebookDocumentService
-
didChange
public void didChange(org.eclipse.lsp4j.DidChangeNotebookDocumentParams params)
Description copied from interface:org.eclipse.lsp4j.services.NotebookDocumentServiceThe 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 modenotebookin itsServerCapabilities.notebookDocumentSynccapability.Registration Options:
NotebookDocumentSyncRegistrationOptionsSince 3.17.0
- Specified by:
didChangein interfaceorg.eclipse.lsp4j.services.NotebookDocumentService
-
didSave
public void didSave(org.eclipse.lsp4j.DidSaveNotebookDocumentParams params)
Description copied from interface:org.eclipse.lsp4j.services.NotebookDocumentServiceThe 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 modenotebookin itsServerCapabilities.notebookDocumentSynccapability.Registration Options:
NotebookDocumentSyncRegistrationOptionsSince 3.17.0
- Specified by:
didSavein interfaceorg.eclipse.lsp4j.services.NotebookDocumentService
-
didClose
public void didClose(org.eclipse.lsp4j.DidCloseNotebookDocumentParams params)
Description copied from interface:org.eclipse.lsp4j.services.NotebookDocumentServiceThe 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 modenotebookin itsServerCapabilities.notebookDocumentSynccapability.Registration Options:
NotebookDocumentSyncRegistrationOptionsSince 3.17.0
- Specified by:
didClosein interfaceorg.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.TextDocumentServiceThetextDocument/semanticTokens/fullrequest is sent from the client to the server to return the semantic tokens for a whole file.Since 3.16.0
- Specified by:
semanticTokensFullin interfaceorg.eclipse.lsp4j.services.TextDocumentService
-
semanticTokensFull
@Beta protected org.eclipse.lsp4j.SemanticTokens semanticTokensFull(org.eclipse.lsp4j.SemanticTokensParams params, org.eclipse.xtext.util.CancelIndicator cancelIndicator)
-
-