             locals =
                 $('.tree-view .selected').map(() ->
                     if this.getPath? then this.getPath() else ''
-                ).get();
+                ).get()
             if locals? and locals.length > 0
                 selected = @treeView.getSelected()
                 if selected.length != 1 or selected[0].item.type == "resource"

                        )
                        self.disposables.add(onDidSave)
                        self.disposables.add(onDidDestroy)
                        XQUtils.xqlint(newEditor)
                        onOpen?(newEditor)
                    )
                )


        reindex: (parentView) ->
            query = "xmldb:reindex('#{parentView.item.path}')"
            @main.updateStatus("Reindexing #{parentView.item.path}...")
            @runQuery(query,
                (error, response) ->
                    atom.notifications.addError("Failed to reindex collection #{parentView.item.path}", detail: if response? then response.statusMessage else error)
                (body) =>
                    @main.updateStatus("")
                    atom.notifications.addSuccess("Collection #{parentView.item.path} reindexed")
            )

