* Add second check for prompt length before autocomplete * Add new renderPromptWithLimit to avoid conflicting with other modules * Fix format issue * Refactor to remove repetitive logic * Add tests * Fix type error --------- Co-authored-by: Jacob Kim <jacob@continue.dev>