 
 
   attached: ->
+    @addProjectListItem path for path in @findProject()
     console.log 'start'
     @toggleAddBtn()
 

        path = paths[0]
        console.log "select path:#{path}"
        if @isProject path
          @addProjectListItem path if @checkProjectExistInList(path)  is no
        else
          alert Desc.selectCorrectProject


    return projects

  addProjectListItem: (path) ->
    return if yes is @checkProjectExistInList path
    config = @readConfig path, 'project'
    if config?
      liStr = "<li class='settingsItem' data-projectpath='#{path}' data-id='#{config.identifier}'><a class='icon icon-file-submodule'>#{config.name}</a></li>"
