gpui: Add debug assertion to Window::on_action and make docs consistent (#41202)
Improves formatting consistency across various docs, fixes some typos,
and adds a missing `debug_assert_paint` to `Window::on_action` and
`Window::on_action_when`.
Release Notes:
- N/A
273321608fLexi Mattick committed on 11/6/2025, 7:55:20 AM· committed by GitHubparent92cfce5