Skip to content

Commit e4829bf

Browse files
Merge pull request #5848 from continuedev/dallin/indexing-logic-fix
Fix codebase indexer config logic
2 parents a1bfef9 + 98d065a commit e4829bf

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

core/indexing/CodebaseIndexer.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,10 @@ export class CodebaseIndexer {
249249
}
250250

251251
const { config } = await this.configHandler.loadConfig();
252-
if (config?.disableIndexing) {
252+
if (!config) {
253+
return;
254+
}
255+
if (config.disableIndexing) {
253256
yield {
254257
progress,
255258
desc: "Indexing is disabled in config.json",

0 commit comments

Comments
 (0)