redhat-developer / redhat-developer/quarkus-ls

Refactor to create user tag

Open
#641 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 template :

<html>
   <a href="{url}">{label}</a>
</html>

It should be nice to give the capability to provide refactoring to create a user tag file for <a href="{url}">{label}</a>.

  • Use select <a href="{url}">{label}</a>
  • Open contextual menu Create and move to user tag
  • It open a popup to fill the user tag name.
  • The user fill the popup with userLink for instance.
  • It create the src/main/resources/tags/userLink.html file with the following content <a href="{url}">{label}</a>
  • The html file is updated to become:
<html>
   {#userLink url=url label=label /}
</html>

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 language server's contextual-menu refactoring entry point and the code that creates files under src/main/resources/tags. Trace how the selected HTML and popup input are handled, then verify that the user tag file is created and the original markup is replaced with the requested tag invocation.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.