redhat-developer / redhat-developer/quarkus-ls

Support for `MicroProfile RestClient` CodeAction for referenced interface

Open
#271 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

code action
Dominant language
Java
Stars
50
Forks
18
Avg merge
22h 11m
Merged PRs (30d)
3

Description

Takes a sample:

package org.acme.restclient;

public interface MyService {

}
public class Fields {
 
	@Inject                                          
	@RestClient
	public MyService service1, service2;
}

In this case service1 and service2 have errors because MyService is not annotated with RegisterRestClient.

image

It should be nice to have a CodeAction triggered from the service1, service2 field which insert RegisterRestClient in the MyService interface.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the CodeAction handling for the service1 and service2 fields in the Java language server, then trace how the referenced MyService interface is resolved. The work is complete when invoking the action from either field adds RegisterRestClient to MyService and the resulting diagnostics are cleared.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
devtools
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.