     @ace.on "ace.requests.save", (contents) =>
       file = @getData()
       if /localfile:/.test file.path
-        @openSaveDialog closeAfter: no
+        @openSaveDialog()
       else
         file.once 'fs.save.started',    @ace.bound 'saveStarted'
         file.once 'fs.save.finished',   @ace.bound 'saveFinished'

      id         : 13
      parentId   : null
      callback   : =>
        @openSaveDialog closeAfter: no

  openSaveDialog: (options = {}) ->
    { closeAfter }   = options

    file = @getData()
    KD.utils.showSaveDialog this, (input, finderController, dialog) =>
      [node] = finderController.treeController.selectedNodes
      name   = input.getValue()


        newFile = FSHelper.createFileFromPath "#{parent.path}/#{name}", yes
        @getDelegate().openFile newFile, contents


    , { inputDefaultValue: file.name }

