 
   # updates styling on the .tree-view-resizer and the panel element
   update: (pushEditor = getConfig('pushEditor'))->
-    promiseNextTick().then =>
+    Promise.resolve().then =>
       if pushEditor
         @treeViewEl.style.position = 'relative'
         atom.views.getView(@treeView.panel)?.style.width = ''


  # resize the tree view when its contents might change size
  resize: ->
    promiseNextTick().then =>
      if @visible then @show 0  else @hide 0
    .catch error


# generic error logging function
error = (e) ->
  console.error e.message, '\n', e.stack

getConfig = (key) -> atom.config.get "autohide-tree-view.#{key}"

