Skip to content

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

Description

@angelozerr

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?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions