Skip to content

[Feature]: Add mechanical quick fixes for XAML diagnostics #202

Open

Description

Is your feature request related to a problem? Please describe.

The XAML language server detects the battle-test matrix accurately (33/33 in PR #50 Round 5), but only 9/18 scenarios expose a code action. Several diagnostics already contain enough structured information for a deterministic repair, leaving users to make routine edits manually.

Describe the solution you'd like

Add focused code actions for:

  • missing namespace declarations (CA05): insert the required xmlns on the document root when the namespace is uniquely known;
  • missing x:DataType (CA09): insert an inferred authoritative type when available;
  • missing or invalid x:Name (CA11/CA16): generate a unique valid identifier;
  • duplicate attributes (CA17): remove the duplicate attribute safely;
  • unresolved namespace declarations (WXAML0033): offer a replacement only when a single close known namespace is authoritative.

Each action should preserve formatting, avoid guesses when multiple candidates exist, and include unit plus live integration coverage.

Additional context

Follow-up from PR #50 Round 5 battle testing. Detection is now the strong part of the feature; remediation is the largest remaining usability gap.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions