When a file is opened, we should prepare its target so that all the dependent types are available in code completion etc. rdar://127474003