 
 update1()
 
-
+plugin.indexing.subscribe (files) ->
+    atom.notifications.addSuccess("#{files && files.length} files have been indexed.")
+    document.getElementById('lupa-index-project-wrapper').style.display = 'none';
 
 refreshInterval = null
 updateAutoRefresh = (value) ->

<button class='btn' id='lupa-refresh'><span class='icon icon-sync'></span>Refresh</button>
<button class='btn' id='lupa-change-colors'>Change colors</button>
<br>
<button class='btn' id='lupa-index-project'>
<span class='icon icon-telescope'></span>
Index project</button>
(It requires lupaProject.json file.)
<div class='lupa-structure' id='lupa-structure'></div>"

decorations = []

    alert(result)

document.getElementById('lupa-index-project').addEventListener('click', () ->
    alert "Click ok to start indexing (it can take a while)."
    try
        plugin.indexProject(path_.dirname(currentFile))
    catch e
