microsoft / microsoft/WinAppVSCE
[Bug]: XAML diagnostics flag valid platform SystemColor resources
Nobody has claimed this yet.
- 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
- Open a WinUI XAML file with a color-valued property.
- Set the value to
{ThemeResource SystemColorHotlightColor}. - Observe
WXAML0013reporting 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
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 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