-
Notifications
You must be signed in to change notification settings - Fork 29
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
Add REST client CodeLens for additional annotations #309
Conversation
test this please. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This works well, and the code looks good! I think we are going to hold off on merging this until after the release, although we should discuss that.
@@ -133,7 +133,7 @@ private static void collectURLCodeLenses(IJavaElement[] elements, String rootPat | |||
// @DELETE, @PUT | |||
// JAX-RS | |||
// annotation | |||
if (isJaxRsRequestMethod(method) && Flags.isPublic(method.getFlags())) { | |||
if (isClickableJaxRsRequestMethod(method) && Flags.isPublic(method.getFlags())) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you think about also providing the unclickable urls for the application's own REST endpoints in this PR? When I read the issue initially, that's what I thought it was talking about.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it makes sense to do that as well. @rgrunber what do you think?
I didn't include it initially because I thought it wasn't very useful to show, but I can also add it to be consistent since it is allowed? |
If it's easy enough, I would add it. It also isn't clickable, mainly because I don't think a web browser would render it (only handles GET). |
Signed-off-by: Jessica He <jhe@redhat.com>
Fixes #94
Signed-off-by: Jessica He jhe@redhat.com