mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-29 20:20:57 +00:00
Bug/1369 at command recursive search (#1370)
This commit is contained in:
parent
a2ed4266aa
commit
b47a4240ff
2 changed files with 36 additions and 4 deletions
|
|
@ -210,10 +210,10 @@ export async function handleAtCommand({
|
|||
resolvedSuccessfully = true;
|
||||
} catch (error) {
|
||||
if (isNodeError(error) && error.code === 'ENOENT') {
|
||||
onDebugMessage(
|
||||
`Path ${pathName} not found directly, attempting glob search.`,
|
||||
);
|
||||
if (globTool) {
|
||||
if (config.getEnableRecursiveFileSearch() && globTool) {
|
||||
onDebugMessage(
|
||||
`Path ${pathName} not found directly, attempting glob search.`,
|
||||
);
|
||||
try {
|
||||
const globResult = await globTool.execute(
|
||||
{ pattern: `**/*${pathName}*`, path: config.getTargetDir() },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue