redhat-developer / redhat-developer/quarkus-ls

CodeAction to replace deprecated `#with` into `#let` section

Open
#489 4 comments 0 reactions 0 assignees View on GitHub

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 #with with 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

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.