Skip to content

Commit 27c30c2

Browse files
committed
enhance comments
1 parent bc2d660 commit 27c30c2

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/core/prompts/sections/custom-instructions.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ async function directoryExists(dirPath: string): Promise<boolean> {
3434

3535
const MAX_DEPTH = 5
3636

37-
//
37+
/**
38+
* Recursively resolve directory entries and collect file paths
39+
*/
3840
async function resolveDirectoryEntry(
3941
entry: Dirent,
4042
dirPath: string,
@@ -56,6 +58,9 @@ async function resolveDirectoryEntry(
5658
}
5759
}
5860

61+
/**
62+
* Recursively resolve a symbolic link and collect file paths
63+
*/
5964
async function resolveSymLink(fullPath: string, filePaths: string[], depth: number): Promise<void> {
6065
// Avoid cyclic symlinks
6166
if (depth > MAX_DEPTH) {

0 commit comments

Comments
 (0)