microsoft / microsoft/WinAppVSCE

[Bug]: XAML diagnostics flag valid platform SystemColor resources

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

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
13
Forks
3
Avg merge
6d 1h
Merged PRs (30d)
11

Description

Describe the bug

The XAML language server reports WXAML0013 for valid platform theme resources that are not present in the WinUI generic.xaml catalog. Round 5 testing found {ThemeResource SystemColorHotlightColor} flagged in AI Dev Gallery even though the resource is supplied by the Windows platform.

To Reproduce
  1. Open a WinUI XAML file with a color-valued property.
  2. Set the value to {ThemeResource SystemColorHotlightColor}.
  3. Observe WXAML0013 reporting an unknown resource key.
Expected behavior

Platform-provided system resources should be recognized without weakening diagnostics for genuinely unknown resource keys. Audit the complete SystemColor* platform resource family rather than adding only this key.

Screenshots

N/A

OS Version and details

Windows 11; found during PR #50 Round 5 gallery validation against prerelease.290.

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 at the WXAML0013 diagnostic and its WinUI generic.xaml resource catalog, then reproduce the reported SystemColorHotlightColor case in a WinUI XAML file. Audit the complete SystemColor* platform resource family without suppressing genuinely unknown keys, and verify that valid platform resources no longer trigger WXAML0013.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
devtools
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
72/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.