redhat-developer / redhat-developer/quarkus-ls

CodeAction to create user tag file

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

Nobody has claimed this yet.

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

Description

Given this Qute template:

{#user price foo=value}
    ABCD
{/user}

In Qute it's an user tag, it means that src/main/resources/templates/tags/user.html shoudl exists. If it doesn't exists, it should be nice to provide a code action on #user:

image

  • which creates src/main/resources/templates/tags/user.html
  • with the following content
{it}
{foo}
{nested-content}
  • {it} --> comes from price (a parameter without name)
  • {foo} --> comes from foo=value (a parameter with a name)
  • {nested-content} --> comes from ABCD a content inside the #user

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 the requested Qute user-tag example and the target path src/main/resources/templates/tags/user.html. Trace how code actions are handled for the #user tag, then verify that the generated file contains {it}, named parameters such as {foo}, and {nested-content} from the tag body.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.