redhat-developer / redhat-developer/quarkus-ls
CodeActions to create Java method / template extension
Open
Nobody has claimed this yet.
code action
qute
- Dominant language
- Java
- Stars
- 50
- Forks
- 18
- Avg merge
- 22h 11m
- Merged PRs (30d)
- 3
Description
Given this Qute template:
{@org.acme.Item item}
{item.getXXX(0, 'abcd')}
getXXX method appears as an error. It should be nice to provide 2 code actions to fix the problem:
- Create Java method
public String getXXX(int arg0, String arg2) {return ""}inorg.acme.Itemclass. - Create the template extension
@TemplateExtension public String static getXXX(Item item, int arg0, String arg2)in a new class or in an existing class which defines already some template extension.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No files, tests, or entry points are named. Start by locating the Qute language-server code-action handling and existing template-extension support; then determine how the shown getXXX call yields its parameter types and where Java methods or template extensions can be created. Done means both requested code actions are available for the example.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100