mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
fix: make code index initialization non-blocking at activation (#8933)
This commit is contained in:
parent
f9d6fe7985
commit
9dfa496659
1 changed files with 5 additions and 5 deletions
|
|
@ -110,13 +110,13 @@ export async function activate(context: vscode.ExtensionContext) {
|
|||
if (manager) {
|
||||
codeIndexManagers.push(manager)
|
||||
|
||||
try {
|
||||
await manager.initialize(contextProxy)
|
||||
} catch (error) {
|
||||
// Initialize in background; do not block extension activation
|
||||
void manager.initialize(contextProxy).catch((error) => {
|
||||
const message = error instanceof Error ? error.message : String(error)
|
||||
outputChannel.appendLine(
|
||||
`[CodeIndexManager] Error during background CodeIndexManager configuration/indexing for ${folder.uri.fsPath}: ${error.message || error}`,
|
||||
`[CodeIndexManager] Error during background CodeIndexManager configuration/indexing for ${folder.uri.fsPath}: ${message}`,
|
||||
)
|
||||
}
|
||||
})
|
||||
|
||||
context.subscriptions.push(manager)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue