Fine-tuning grace period in the highlighter to avoid calling typechecker too often