Take a look at Magic Sentry inside World Editor, the ability itself.
If I recall, that one, along with true sight has invisibility type detection, which can exclude seeing invisible units. But this applies to all units that has invisibility of the excluded type.