redhat-developer / redhat-developer/quarkus-ls

CodeAction for generate @TemplateData

Open
#532 3 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

Today completion validation etc provide fields methods from java type by using java reflection.

I wonder if we should have à settings like reflectionValueResolver set to true by default.

When this settings will be set to false completion validation will provide only fields and methods annotated with @TemplateData.

We could provide a quickfix for the methods and fields which are used in the template but not annotated, to insert in the java file the proper TemplateData annotation.

@mkouba what do you think about this idea?

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 with completion validation and the reflectionValueResolver setting described in the issue. Define the setting's default and the @TemplateData annotation CodeAction, then verify that fields and methods used in templates receive the intended annotation behavior in the Java file.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
developer-experience, tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.