Not sure why needs to be resolved with an empty object: if it's needed for some reason, maybe a comment here would be nice. Otherwise I would just resolve the promise without any argument – or maybe the sidebar itself?