 fs = require 'graceful-fs'
 CSON = require 'cson'
 _path = require 'path'
+LocalStorage = window.localStorage
 {CompositeDisposable} = require 'atom'
 
 convertEOL = (text) ->

module.exports =
class AtomHelper
  constructor: (@virtualFileSystem) ->
    @addKeymaps()
    @addMenu()
    @addContextMenus()
    atom.packages.onDidActivateInitialPackages(@handleEvents)

  handleEvents: =>

      'learn-ide:save-all': @unimplemented

    @disposables.add atom.workspace.observeTextEditors (editor) =>
      editor.onDidSave (e) =>
        @onEditorSave(e)
        @updateTitle()

    @disposables.add atom.packages.onDidActivatePackage (pkg) =>
      return unless pkg.name is 'find-and-replace'
