mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-10-29 04:07:12 -06:00
M3.8: register the split paint modules next to paint so the command palette keeps listing them (Stroke Options for "stroke")
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
b7969a6a5d
commit
9cabeea68b
@@ -48,8 +48,13 @@ fn moved_commands_keep_their_ids() {
|
||||
"swatch.duplicate",
|
||||
"swatch.sortByName",
|
||||
];
|
||||
let pos = |id: &str| command_specs().iter().position(|c| c.id == id).unwrap_or_else(|| panic!("{id}"));
|
||||
let (paint_end, after_paint) = (pos("transparency.set"), pos("transparency.makeOpacityMask"));
|
||||
for id in ids {
|
||||
assert_eq!(command_specs().iter().filter(|c| c.id == id).count(), 1, "{id}");
|
||||
// Registered right after `paint` (where they lived), so the command palette, which lists
|
||||
// the first matches in registry order, still shows them (e.g. Stroke Options for "stroke").
|
||||
assert!((paint_end..after_paint).contains(&pos(id)), "{id}");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user