 
   serialize: ->
     deserializer: 'ArchiveEditSession'
-    path: @path
+    path: @getUri()
 
   getViewClass: ->
     require './archive-view'

      new ArchiveEditSession(filePath) if archive.isPathSupported(filePath)

  @deserialize: ({path}={}) ->
    if fsUtils.isFileSync(path)
      new ArchiveEditSession(path)
    else
      console.warn "Could not build edit session for path '#{path}' because that file no longer exists"

  constructor: (@path) ->
    @file = new File(@path)

    else
      'untitled'

  getUri: -> project?.relativize(@getPath()) ? @getPath()

  getPath: -> @path

