summaryrefslogtreecommitdiff
path: root/packages/cli/src/ui/hooks/atCommandProcessor.ts
diff options
context:
space:
mode:
authorBilly Biggs <[email protected]>2025-06-23 23:48:26 -0700
committerGitHub <[email protected]>2025-06-24 06:48:26 +0000
commitb47a4240ff02484ec9c80e99f4a87c3c57b87f31 (patch)
tree6eade11012c06f5fe9b83390e51217f2c2a62584 /packages/cli/src/ui/hooks/atCommandProcessor.ts
parenta2ed4266aaee69932a8254ccf611c95ad584a71a (diff)
Bug/1369 at command recursive search (#1370)
Diffstat (limited to 'packages/cli/src/ui/hooks/atCommandProcessor.ts')
-rw-r--r--packages/cli/src/ui/hooks/atCommandProcessor.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/cli/src/ui/hooks/atCommandProcessor.ts b/packages/cli/src/ui/hooks/atCommandProcessor.ts
index d6c5eded..3bbdce0d 100644
--- a/packages/cli/src/ui/hooks/atCommandProcessor.ts
+++ b/packages/cli/src/ui/hooks/atCommandProcessor.ts
@@ -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() },