mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-10-07 02:58:15 +00:00
fix: use extension context path for worker location
This commit is contained in:
parent
5ac7befb67
commit
c360f26476
1 changed files with 2 additions and 1 deletions
|
|
@ -214,7 +214,8 @@ export class CodeIndexManager {
|
|||
}
|
||||
|
||||
// Create new worker
|
||||
const workerPath = path.join(__dirname, "workers/indexing-worker.js")
|
||||
// Use the extension path from context to ensure we get the correct path in both dev and production
|
||||
const workerPath = path.join(this.context.extensionPath, "dist/workers/indexing-worker.js")
|
||||
this._worker = new Worker(workerPath)
|
||||
this._workerReady = false
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue