/** * 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 version 3.12.0 */ @JsonRequest @ResponseJsonAdapter(PrepareRenameResponseAdapter.class) default CompletableFuture<Either<Range, PrepareRenameResult>> prepareRename(TextDocumentPositionParams params) { throw new UnsupportedOperationException(); }
if (responseTypeAdapterAnnotation != null) { try { responseTypeAdapter = responseTypeAdapterAnnotation.value().newInstance(); } catch (InstantiationException | IllegalAccessException e) { throw new RuntimeException(e);
if (responseTypeAdapterAnnotation != null) { try { responseTypeAdapter = responseTypeAdapterAnnotation.value().newInstance(); } catch (InstantiationException | IllegalAccessException e) { throw new RuntimeException(e);
/** * 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: TextDocumentRegistrationOptions */ @JsonRequest @ResponseJsonAdapter(CodeActionResponseAdapter.class) default CompletableFuture<List<Either<Command, CodeAction>>> codeAction(CodeActionParams params) { throw new UnsupportedOperationException(); }
/** * 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 version 3.12.0 */ @JsonRequest @ResponseJsonAdapter(PrepareRenameResponseAdapter.class) default CompletableFuture<Either<Range, PrepareRenameResult>> prepareRename(TextDocumentPositionParams params) { throw new UnsupportedOperationException(); } }
/** * 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: TextDocumentRegistrationOptions */ @JsonRequest @ResponseJsonAdapter(CodeActionResponseAdapter.class) default CompletableFuture<List<Either<Command, CodeAction>>> codeAction(CodeActionParams params) { throw new UnsupportedOperationException(); }
/** * 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 */ @JsonRequest @ResponseJsonAdapter(DocumentSymbolResponseAdapter.class) default CompletableFuture<List<Either<SymbolInformation, DocumentSymbol>>> documentSymbol(DocumentSymbolParams params) { throw new UnsupportedOperationException(); }
/** * The document symbol request is sent from the client to the server to list all * symbols found in a given text document. * * Registration Options: {@link TextDocumentRegistrationOptions} * * <p> * <b>Caveat</b>: although the return type allows mixing the * {@link DocumentSymbol} and {@link SymbolInformation} instances into a list do * not do it because the clients cannot accept a heterogeneous list. A list of * {@code DocumentSymbol} instances is only a valid return value if the * {@link DocumentSymbolCapabilities#getHierarchicalDocumentSymbolSupport() * textDocument.documentSymbol.hierarchicalDocumentSymbolSupport} is * {@code true}. More details on this difference between the LSP and the LSP4J * can be found <a href="https://github.com/eclipse/lsp4j/issues/252">here</a>. * </p> */ @JsonRequest @ResponseJsonAdapter(DocumentSymbolResponseAdapter.class) default CompletableFuture<List<Either<SymbolInformation, DocumentSymbol>>> documentSymbol(DocumentSymbolParams params) { throw new UnsupportedOperationException(); }