Issues with Refactor and js-refactor packages by hax


For some reason, Refactor only works sporadically on new *.js files, when there is a simple code as
var foo = ‘bar’;

foo will sometimes be highlighted and able to renamed, sometimes won’t. on larger js files Refactor won’t work at all. I tried to disable\enable the package, re-install and re-install entire Atom, but nothing seemed to fix the issue.