   show: (noDelay, disableHoverEvents) ->
     return unless @enabled
     @applyHiddenWidth()
+    @applyAnimate()
     width = treeViewEl.querySelector('.tree-view').clientWidth
     if width > treeViewEl.clientWidth > @getHiddenWidth()
       noDelay = true

    @initialized = true

  enable: (treeViewPkg) ->
    try
      treeViewPkg ?= atom.packages.getActivePackage 'tree-view'
      return unless treeViewPkg?
      @enabled = true
      treeView = treeViewPkg.mainModule.createView()
      treeViewEl = atom.views.getView treeView
      treeViewEl.classList.add 'autohide', 'autohide-hover-events'
      @applyHiddenWidth()
      @applyAnimate()
      @hide true
    catch e
      console.error e

  disable: ->
    @enabled = false

'use strict'
path = require 'path'
SubAtom = require 'sub-atom'

class AutohideTreeView
  treeView = null
