             atom.workspace.observeTextEditors((editor) =>
                 buffer = editor.getBuffer()
                 p = buffer.getId()
-                console.log("checking buffer %s", p)
                 match = /^((?:http|https):\/\/.*?)(\/db.*)$/.exec(p)
                 if  match and not buffer._remote?
                     server = match[1]


        reindex: (parentView) ->
            query = "xmldb:reindex('#{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) ->
                    atom.notifications.addSuccess("Collection #{parentView.item.path} reindexed")
            )


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