redhat-developer / redhat-developer/quarkus-ls
CodeAction to replace deprecated `#with` into `#let` section
Open
Nobody has claimed this yet.
code action
qute
template-file
validation
- Dominant language
- Java
- Stars
- 50
- Forks
- 18
- Avg merge
- 22h 11m
- Merged PRs (30d)
- 3
Description
In the future, Qute will deprecate #with section.
We should support diagnostic and quickfix fir that:
- report a diagnostic in
#withwith LSP deprecated diagnostic tag. - provide a codeaction which transform #with with #let
Given this Qute template:
{@org.acme.qute.Item item}
{#with item}
{name}
{price}
{/with}
#with should report a deprecated diagnostic and provide a code action to replace with:
{@org.acme.qute.Item item}
{#let name=item.name price=item.price}
{name}
{price}
{/let}
@mkouba what do you think about that?
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 Qute template handling for #with and the existing LSP diagnostic and code-action entry points. Add the deprecated diagnostic and a code action that transforms the example #with section into the shown #let form, then verify both results with the project's existing checks.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- devtools
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100