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 eb488b4 commit aece1daCopy full SHA for aece1da
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 = cline.cwd || 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