Bug/1369 at command recursive search (#1370)

This commit is contained in:
Billy Biggs
2025-06-23 23:48:26 -07:00
committed by GitHub
parent a2ed4266aa
commit b47a4240ff
2 changed files with 36 additions and 4 deletions

View File

@@ -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() },