Improve code completion when parsing files directly