 
   activate: (state) ->
     packageVersion = atom.packages.getLoadedPackage('wakatime').metadata.version
-    cleanupOnUninstall()
     setupConfigs()
     @settingChangedObserver = atom.config.observe 'wakatime', settingChangedHandler
 


# package-global attributes
packageVersion = null
unloadHandler = null
lastHeartbeat = 0
lastFile = ''
statusBarTileView = null


enoughTimePassed = (time) ->
  return lastHeartbeat + 120000 < time

setupEventHandlers = (callback) ->
  atom.workspace.observeTextEditors (editor) =>
