Skip to content

Commit 1699e28

Browse files
committed
Fixes #4744: Search and replace tool now fails if search query matches multiple locations
- Added validation to check if search pattern matches multiple locations in file - Tool now fails with descriptive error message when search query is not specific enough - Suggests using more specific search query, line ranges, or apply_diff tool for precise targeting - Added comprehensive test coverage for the new functionality - Handles both global file searches and line range searches - Limits displayed matches to 10 in error messages for readability
1 parent 2e2f83b commit 1699e28

File tree

2 files changed

+449
-2
lines changed

2 files changed

+449
-2
lines changed

0 commit comments

Comments
 (0)