fix: use extension context path for worker location

This commit is contained in:
hannesrudolph 2025-07-03 10:45:39 -06:00
parent 5ac7befb67
commit c360f26476

View file

@ -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