 
         resolve(tableEditor)
       else if @editorState?
-        console.log @editorState
         tableEditor = atom.deserializers.deserialize(@editorState)
         @editorState = null
         resolve(tableEditor)

      @subscriptions.add @editor.onDidChangeModified (status) =>
        @emitter.emit 'did-change-modified', status

      @emitter.emit('did-open', {@editor, options: _.clone(options)})
      @saveConfig('TableEditor')
      @editor


    @emitter.on 'did-change-modified', callback

  applyChoice: ->
    return if @choiceApplied
    if @choice?
      switch @choice
        when 'TextEditor' then @openTextEditor(@options)
        when 'TableEditor' then @openTableEditor(@options)

    @choiceApplied = true

  openTextEditor: (@options={}) ->
    atom.project.open(@uriToOpen).then (editor) =>
