Properly prioritize opened files for parsing
First parse currently active document with the highest priority. Then opened files and everything else.
REVIEW: 119642