Diagnose last. Also, we only need diagnostics for the file that
actually got to index this file.