Use documents instead of files so that changes are incorporated into hint results without saving.