-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CodeAction to Generate Open API Annotations #239
Comments
@angelozerr Let me know if you would like our team to help take a look at this one (if you haven't started working on it yet). |
@ericglau it should be very nice, but please wait for that I implement code action with extension point in #236 I'm working on this issue. The idea is to :
I will ping you as soon as I will finish my work. |
@angelozerr Please assign this to me |
@bensonnw please write test for your CodeAction support. You have a sample at https://github.com/redhat-developer/quarkus-ls/blob/master/microprofile.jdt/com.redhat.microprofile.jdt.test/src/main/java/com/redhat/microprofile/jdt/core/health/JavaDiagnosticsMicroProfileHealthTest.java#L68 |
Fixed by #275 |
This CodeAction to
Generate Open API Annotations
feature is supported by the IBM MicroProfile LS https://github.com/MicroShed/microprofile-language-server/blob/517056559d82244355b51365d6617caf5b36be1f/src/main/java/com/microprofile/lsp/internal/helper/SourceAssistHelper.javaThe idea is to provide a CodeAction
Generate Open API Annotations
withCodeActionKind.Source
to generate Open API annotations. The current implementation generates the @operation annotation for each methods of the class (see https://github.com/MicroShed/microprofile-language-server/blob/517056559d82244355b51365d6617caf5b36be1f/src/main/java/com/microprofile/lsp/internal/GenerateOpenAPIAnnotations.java#L78).The text was updated successfully, but these errors were encountered: