redhat-developer / redhat-developer/quarkus-ls
Refactor to create user tag
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 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
userLinkfor instance. - It create the
src/main/resources/tags/userLink.htmlfile 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
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
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