mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
- Extract needsSpaceBeforeMention(text) helper for consistent space detection - Use helper across insertMention, ChatTextArea drag/drop, and text insertion - Add findActiveAtIndex to guard @ replacement (only replace @ with no whitespace between it and cursor) - Handle \n and \r as whitespace in space-before-mention check - Add comprehensive tests for active @ detection and helper function Addresses PR review feedback: 1. Guard replacement to active @ segment only 2. Align space-before-mention behavior across insertion paths |
||
|---|---|---|
| .. | ||
| __tests__ | ||
| components | ||
| context | ||
| hooks | ||
| i18n | ||
| lib | ||
| oauth | ||
| utils | ||
| vite-plugins | ||
| App.tsx | ||
| index.css | ||
| index.tsx | ||
| preflight.css | ||
| types.d.ts | ||
| vite-env.d.ts | ||