Skip to content

Commit 02d8d49

Browse files
committed
Adding the grep search tool.
1. Implemented the tool using https://github.com/microsoft/vscode-ripgrep. 2. The grepped result show as clickable file path. 3. The tool currently is disable in current pr, once grepSearch tool tested, will update the tool_index.json to enable this tool.
1 parent 2db1d85 commit 02d8d49

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

packages/core/src/codewhispererChat/tools/toolUtils.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,9 @@ export class ToolUtils {
5151
case ToolType.ExecuteBash:
5252
return tool.tool.requiresAcceptance()
5353
case ToolType.ListDirectory:
54-
<<<<<<< HEAD
55-
return { requiresAcceptance: false }
54+
return tool.tool.requiresAcceptance()
5655
case ToolType.GrepSearch:
5756
return { requiresAcceptance: false }
58-
=======
59-
return tool.tool.requiresAcceptance()
60-
>>>>>>> 4e0659cbc (feat(chat): Add validation to fileRead, ListDir and ExecBash tools (#7008))
6157
}
6258
}
6359

0 commit comments

Comments
 (0)