Skip to content

fix(windows): make the command palette's commit event args a class - #4638

Merged
datlechin merged 1 commit into
mainfrom
fix/windows-palette-event-args
Nov 27, 2026
Merged

datlechin merged 1 commit into
mainfrom
fix/windows-palette-event-args

Conversation

@datlechin

Copy link
Copy Markdown
Member

Summary

  • PaletteCommitEventArgs was a record deriving from EventArgs. C# refuses that (CS8864: records may only inherit from object or another record), so the Native AOT publish in windows / Windows (x64) and (Arm64) has failed on main since feat(windows): command palette / quick switcher #4628.
  • It is now a sealed class with the same Item and Intent properties, in the shape of the repo's other EventArgs types.

Test plan

  • windows / Windows (x64) and (Arm64) publish the app. The WinUI project does not build on macOS, so CI is the check.

@datlechin
datlechin enabled auto-merge (squash) November 27, 2026 13:00
@datlechin
datlechin disabled auto-merge November 27, 2026 15:10
@datlechin
datlechin merged commit dc15243 into main Nov 27, 2026
11 of 13 checks passed
@datlechin
datlechin deleted the fix/windows-palette-event-args branch November 27, 2026 15:10
datlechin added a commit that referenced this pull request Nov 27, 2026
CsWinRT1028 rejects a non-partial WinRT-derived class under Native AOT. The
PaletteCommitEventArgs half of this fix already landed on main via #4638.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant