>I tried passing the editor as the first parameter but it still doesn't work, I believe that the problem is that the passed editor hasn't been >resolved yet, so when the run function from the check functions work, they will use the undefined editor.

You need to wrap your call to the helper function with `` runs(function () { helperFunction(); });`` since ``getEditor`` is an async operation.