Elffuss BraidHub

kikocis/continue public

fix: skip indexing home directory
Changeset1e5b1ca67be8b91e43f04e794301146bbc1b80c66658073aaece8546ac157b19
Authoruinstinct <61635505+uinstinct@users.noreply.github.com> · 2025-09-04 20:21 +05:30
Committeruinstinct <61635505+uinstinct@users.noreply.github.com> · 2025-09-04 20:21 +05:30
Parents85f086de04b1

Browse the files at this changeset

1 file changed

modified extensions/cli/src/services/FileIndexService.ts +10 −0
@@ -3,6 +3,7 @@
33 import { FILE_IGNORE_PATTERNS, FILE_PATTERNS } from "../util/filePatterns.js";
44 import { getFileWatcher } from "../util/fileWatcher.js";
55 import { isGitRepo } from "../util/git.js";
6+import { isInHomeDirectory } from "../util/isInHomeDirectory.js";
67 import { logger } from "../util/logger.js";
78
89 import { BaseService } from "./BaseService.js";
@@ -69,6 +70,15 @@
6970
7071 try {
7172 const inGitRepo = isGitRepo();
73+
74+ if (isInHomeDirectory()) {
75+ this.setState({
76+ isIndexing: false,
77+ error: "Skipping full index as in home directory",
78+ });
79+ return;
80+ }
81+
7282 const allMatches = await this.throttledGlob(FILE_PATTERNS, {
7383 maxDepth: inGitRepo ? 15 : 3,
7484 ignore: FILE_IGNORE_PATTERNS,