You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add timeout in searching text in files (#1233)
* feat: add timeout handling for file and text search operations
* feat: add timeout handling for search and rendering operations in FindTextInFilesTool
* use raceTimeout and raceCancellation
* Updated per comments
* extract a raceTimeoutAndCancellationError()
* enhance timeout handling and cancellation for file and text search operations
* enhance raceTimeoutAndCancellationError
* removed unnecessary check
* refactor: streamline cancellation token usage in file and text search operations
// embed message to give LLM hint about what to do next
74
+
`Find ${results.length} results in searching text in files with ${isRegExp ? 'regex' : 'literal'} search, and then another searching hits timeout in with ${!isRegExp ? 'regex' : 'literal'} search, try a more specific search pattern`
0 commit comments