mirror of
https://github.com/siteboon/claudecodeui.git
synced 2026-03-09 16:07:49 +00:00
Merge pull request #296 from amacsmith/fix/filter-git-from-autocomplete
fix: filter VCS directories (.git, .svn, .hg) from file autocomplete
This commit is contained in:
@@ -1637,10 +1637,13 @@ async function getFileTree(dirPath, maxDepth = 3, currentDepth = 0, showHidden =
|
|||||||
// Debug: log all entries including hidden files
|
// Debug: log all entries including hidden files
|
||||||
|
|
||||||
|
|
||||||
// Skip only heavy build directories
|
// Skip heavy build directories and VCS directories
|
||||||
if (entry.name === 'node_modules' ||
|
if (entry.name === 'node_modules' ||
|
||||||
entry.name === 'dist' ||
|
entry.name === 'dist' ||
|
||||||
entry.name === 'build') continue;
|
entry.name === 'build' ||
|
||||||
|
entry.name === '.git' ||
|
||||||
|
entry.name === '.svn' ||
|
||||||
|
entry.name === '.hg') continue;
|
||||||
|
|
||||||
const itemPath = path.join(dirPath, entry.name);
|
const itemPath = path.join(dirPath, entry.name);
|
||||||
const item = {
|
const item = {
|
||||||
|
|||||||
Reference in New Issue
Block a user