 
   enable: (treeViewPkg) ->
     try
-      console.log 'autohide-tree-view: enable'
-      console.log 'autohide-tree-view: tree-view package active: ', atom.packages.isPackageActive 'tree-view'
       treeViewPkg ?= atom.packages.getActivePackage 'tree-view'
-      console.log 'autohide-tree-view: tree-view package found: ', treeViewPkg?
       return unless treeViewPkg?
       @enabled = true
       treeView = treeViewPkg.mainModule.createView()
-      console.log 'autohide-tree-view: tree-view model: ', treeView
       treeViewEl = atom.views.getView treeView
-      treeView.attach() if treeViewPkg.mainModule.shouldAttach()
-      console.log 'autohide-tree-view: tree-view element: ', treeViewEl
       treeViewEl.classList.add 'autohide', 'autohide-hover-events'
       @applyHiddenWidth()
-      console.log 'autohide-tree-view: applied setting hiddenWidth'
       @applyAnimate()
-      console.log 'autohide-tree-view: applied setting animate'
       @hide true
-      console.log 'autohide-tree-view: enabled'
     catch e
       console.error e
 

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

class AutohideTreeView
  treeView = null


  getHiddenWidth: -> atom.config.get 'autohide-tree-view.hiddenWidth'

  enableHoverEvents: -> treeViewEl.classList.add 'autohide-hover-events'

  disableHoverEvents: -> treeViewEl.classList.remove 'autohide-hover-events'

module.exports = new AutohideTreeView()