   useFirstQueryAsSearchTerm: true
   supportFilePathOnlyItemsUpdate: true
   refreshOnDidStopChanging: true
-  searchInOrdered: false # This is set to true in spec to test easily
+  searchInOrdered: false # FIXME: This is set to true in spec to test easily
 
   getState: ->
     @mergeState(super, {@projects})


  search: ->
    projects = @projects.slice()
    modifiedBuffers = atom.project.getBuffers().filter (buffer) -> buffer.isModified()
    modifiedBuffersScanned = []

    scanBuffer = (buffer) =>

          @finishUpdateItems()

    searchNextProject = =>
      @searcher.searchProject(projects.shift(), @updateItemsIfNotModified, onFinish)

    if @searchInOrdered
      searchNextProject()
    else
      searchNextProject() while projects.length

  updateItemsIfNotModified: (items) =>
    items = items.filter (item) -> not atom.project.isPathModified(item.filePath)
    @updateItems(items)

  updateItems: (items) =>
    if @searchInOrdered
      items = _.sortBy(items, (item) -> item.filePath)
    super(items)
