[Ide] Don't check all document subviews when looking for content

Only check the active subview. Reverted this change because it
breaks existing code that relies on that behavior.