Skip to content
This repository has been archived by the owner on Aug 7, 2023. It is now read-only.

Commit

Permalink
fix: create WorkerHelper globally
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Apr 5, 2021
1 parent 08310e7 commit 46c560b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(() => {
Expand All @@ -34,7 +34,6 @@ export function activate() {
});
idleCallbacks.add(depsCallbackID);

workerHelper = new WorkerHelper();

// Config subscriptions
subscriptions.add(
Expand Down

0 comments on commit 46c560b

Please sign in to comment.