refactor: allow dot files and directories in file search logic

This commit is contained in:
Bohdan Triapitsyn
2026-01-18 18:01:26 +02:00
parent 85f41c39c1
commit 6c3b653fbd
3 changed files with 3 additions and 9 deletions
@@ -400,7 +400,6 @@ export const FilesView: React.FC = () => {
const mapDirectoryEntries = React.useCallback((dirPath: string, entries: Array<{ name: string; path: string; isDirectory: boolean }>): FileNode[] => {
const nodes = entries
.filter((entry) => entry && typeof entry.name === 'string' && entry.name.length > 0)
.filter((entry) => !entry.name.startsWith('.'))
.filter((entry) => !shouldIgnoreEntryName(entry.name))
.map<FileNode>((entry) => {
const name = entry.name;