Skip to content

Commit 1658f58

Browse files
committed
fix: Load configuration during initialization to ensure correct state and restart requirements
1 parent f93e2d7 commit 1658f58

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/services/code-index/manager.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,8 @@ export class CodeIndexManager {
101101
// 1. ConfigManager Initialization and Configuration Loading
102102
if (!this._configManager) {
103103
this._configManager = new CodeIndexConfigManager(contextProxy)
104-
// For first initialization, load configuration to set up initial state
105-
await this._configManager.loadConfiguration()
106104
}
105+
// Load configuration once to get current state and restart requirements
107106
const { requiresRestart } = await this._configManager.loadConfiguration()
108107

109108
// 2. Check if feature is enabled

0 commit comments

Comments
 (0)