I agree it's a useful feature and it's surprising that the default UI doesn't show it somewhere. There is a melee/ranged combat indicator on the Threat window to the right of the self-cure buttons. You get a red sword icon for melee or a blue bow for ranged. (
image)
.