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 |
||
|---|---|---|
| .. | ||
| audio | ||
| public | ||
| src | ||
| .gitignore | ||
| components.json | ||
| eslint.config.mjs | ||
| index.html | ||
| package.json | ||
| tsconfig.json | ||
| turbo.json | ||
| vite.config.ts | ||
| vitest.config.ts | ||
| vitest.setup.ts | ||