Lint the entire file either once the user stops typing or periodically in the background to prevent inconsistent diagnostics (see #47 and #38).