File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -17,8 +17,8 @@ import { DataLogger } from "./data/log";
17
17
import { CodebaseIndexer } from "./indexing/CodebaseIndexer" ;
18
18
import DocsService from "./indexing/docs/DocsService" ;
19
19
import { countTokens } from "./llm/countTokens" ;
20
- import Ollama from "./llm/llms/Ollama" ;
21
20
import Lemonade from "./llm/llms/Lemonade" ;
21
+ import Ollama from "./llm/llms/Ollama" ;
22
22
import { EditAggregator } from "./nextEdit/context/aggregateEdits" ;
23
23
import { createNewPromptFileV2 } from "./promptFiles/createNewPromptFile" ;
24
24
import { callTool } from "./tools/callTool" ;
@@ -232,6 +232,17 @@ export class Core {
232
232
return ;
233
233
}
234
234
235
+ // Check for disableIndexing to prevent race condition
236
+ const { config } = await this . configHandler . loadConfig ( ) ;
237
+ if ( ! config || config . disableIndexing ) {
238
+ void this . messenger . request ( "indexProgress" , {
239
+ progress : 0 ,
240
+ desc : "Indexing is disabled" ,
241
+ status : "disabled" ,
242
+ } ) ;
243
+ return ;
244
+ }
245
+
235
246
void this . codeBaseIndexer . refreshCodebaseIndex ( dirs ) ;
236
247
} ) ;
237
248
} ) ;
You can’t perform that action at this time.
0 commit comments