We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 57389bf commit 3f4af18Copy full SHA for 3f4af18
src/core/tools/codebaseSearchTool.ts
@@ -17,7 +17,7 @@ export async function codebaseSearchTool(
17
removeClosingTag: RemoveClosingTag,
18
) {
19
const toolName = "codebase_search"
20
- const workspacePath = getWorkspacePath()
+ const workspacePath = (cline.cwd && cline.cwd.trim() !== '') ? cline.cwd : getWorkspacePath()
21
22
if (!workspacePath) {
23
// This case should ideally not happen if Cline is initialized correctly
0 commit comments