Help with weapon conditional

With Survival getting some watered-down ranged abilities from the base Hunter kit, I figured I would play around with a macro to let me dump focus if I am stuck out of melee range. The macro works, but doesn’t update the icon. It does update the tooltip. Any ideas why?

/cast [equipped:Ranged Weapon] Arcane Shot; Raptor Strike

It doesn’t work If I am explicit about the default case either

/cast [equipped:Ranged Weapon] Arcane Shot;
[equipped: Two-Handed Melee Weapon] Raptor Strike