org.eclipse.lsp4j.ImplementationParams Java Examples
The following examples show how to use
org.eclipse.lsp4j.ImplementationParams.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: JDTLanguageServer.java From eclipse.jdt.ls with Eclipse Public License 2.0 | 5 votes |
@Override public CompletableFuture<Either<List<? extends Location>, List<? extends LocationLink>>> implementation(ImplementationParams position) { logInfo(">> document/implementation"); return computeAsyncWithClientProgress((monitor) -> { ImplementationsHandler handler = new ImplementationsHandler(preferenceManager); return Either.forLeft(handler.findImplementations(position, monitor)); }); }
Example #2
Source File: ActionScriptServices.java From vscode-as3mxml with Apache License 2.0 | 5 votes |
/** * Finds all implemenations of an interface. */ @Override public CompletableFuture<Either<List<? extends Location>, List<? extends LocationLink>>> implementation(ImplementationParams params) { return CompletableFutures.computeAsync(compilerWorkspace.getExecutorService(), cancelToken -> { cancelToken.checkCanceled(); //make sure that the latest changes have been passed to //workspace.fileChanged() before proceeding if(realTimeProblemsChecker != null) { realTimeProblemsChecker.updateNow(); } compilerWorkspace.startBuilding(); try { ImplementationProvider provider = new ImplementationProvider(workspaceFolderManager, fileTracker); return provider.implementation(params, cancelToken); } finally { compilerWorkspace.doneBuilding(); } }); }
Example #3
Source File: TextDocumentService.java From lsp4j with Eclipse Public License 2.0 | 2 votes |
/** * The goto implementation request is sent from the client to the server to resolve * the implementation location of a symbol at a given text document position. * * Registration Options: TextDocumentRegistrationOptions * * Since version 3.6.0 */ @JsonRequest @ResponseJsonAdapter(LocationLinkListAdapter.class) default CompletableFuture<Either<List<? extends Location>, List<? extends LocationLink>>> implementation(ImplementationParams params) { throw new UnsupportedOperationException(); }