From 46c560bb465016099618ee0ac647904695a34989 Mon Sep 17 00:00:00 2001 From: Amin Yahyaabadi Date: Mon, 5 Apr 2021 04:52:16 -0500 Subject: [PATCH] fix: create WorkerHelper globally --- lib/main.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/main.ts b/lib/main.ts index a6518d98..a7238fe8 100644 --- a/lib/main.ts +++ b/lib/main.ts @@ -24,7 +24,7 @@ function waitOnIdle() { }; const subscriptions = new CompositeDisposable(); -let workerHelper: WorkerHelper | undefined +const workerHelper = new WorkerHelper(); export function activate() { const depsCallbackID = window.requestIdleCallback(() => { @@ -34,7 +34,6 @@ export function activate() { }); idleCallbacks.add(depsCallbackID); - workerHelper = new WorkerHelper(); // Config subscriptions subscriptions.add(