     # TODO: persist title change, maybe use custom-title package
     document.title = 'Learn IDE - ' + @virtualRoot.replace("#{@localRoot}/", '')
     @send {command: 'sync'}
+    this.treeView().updateRoots()
 
   onSync: ({entries, root}) =>
-    virtualEntries = convert.remoteEntries(entries, @localRoot)
-    sync = new Sync(virtualEntries, "#{@localRoot}/#{root}")
-    sync.execute()
+    # virtualEntries = convert.remoteEntries(entries, @localRoot)
+    # sync = new Sync(virtualEntries, "#{@localRoot}/#{root}")
+    # sync.execute()
 
   onChange: ({entries, path, parent}) =>
     console.log "CHANGE: #{path}"

      console.log "RECEIVED: #{type}"
      messageCallbacks[type]?(payload)

  package: ->
    # todo: update package name
    atom.packages.getActivePackage('tree-view')

module.exports =
class Interceptor
  constructor: ->
    @virtualEntries = {}
    @projectPaths = atom.project.getPaths()
    @projectPaths.forEach (path) -> atom.project.removePath(path)

