redhat-developer / redhat-developer/quarkus-ls

User tag definition should be replaced with documentLink

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

Nobody has claimed this yet.

qute
Dominant language
Java
Stars
50
Forks
18
Avg merge
22h 11m
Merged PRs (30d)
3

Description

Given this Qute renarde template:

{#form uri.Login.login() }

{\form}

To open, the user tags src/main/resources/templates/tags/form.html, we need to use definition (Ctrl+Click) on form which opens the form.html file (without range).

Opening a file, should b emanaged with documentLink, so we should move the definition feature to documentLink feature. It will give those advantages:

  • documentLink exist sto open a file, so we should use it
  • form will be underlined as render
  • when you will have {#abcd and user will click on it it will create the abcd.html file

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 tracing the definition feature for user tags and the handling of src/main/resources/templates/tags/form.html. Check how documentLink is implemented in the language server and how the Qute template example is processed. Done means opening the tag file through documentLink, with the tag underlined and an undefined tag such as {#abcd} linking to abcd.html.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.