 
       @applyEdits(editor, result.edits)
       @updateCaretPosition(editor, result.selectionOffset, result.selectionLength)
+      true
 
   # Event Handlers
 

    @editorSubscriptions.add editor.onDidSave =>
      return if formatting
      formatting = true
      @formatEditor(editor).then =>
        editor.save()
        formatting = false



      detail: detail
    return

  # Returns a Promise that resolves to true or false.
  # true: editor was formatted
  # false: editor was not formatted
  formatEditor: (editor) =>
    descriptors = editor.getRootScopeDescriptor()
    # We only support pure Dart files for now
    return Promise.resolve(false) unless Utils.isCompatible(editor)
    path = editor.getPath()
    bufferRange = editor.getSelectedBufferRange()
    offset = editor.buffer.characterIndexForPosition(bufferRange.start)
