redhat-developer / redhat-developer/quarkus-ls

CodeActions to create Java method / template extension

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

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 ""} in org.acme.Item class.
  • 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

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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.