       return @setPanelVisibility(false)
     @setPanelVisibility(true)
     @_messages.forEach (message)=>
-      if @scope is 'file' then return unless message.currentFile
+      if @_scope is 'file' then return unless message.currentFile
       if message.currentFile and message.range #Add the decorations to the current TextEditor
         marker = @linter.activeEditor.markBufferRange message.range, {invalidate: 'never'}
         @_decorations.push @linter.activeEditor.decorateMarker(

        @_decorations.push @linter.activeEditor.decorateMarker(
          marker, type: 'highlight', class: "highlight-#{message.type.toLowerCase()}"
        )
      Element = Message.fromMessage(message, @scope is 'project')
      @_panel.appendChild Element
    @updateBubble()



  # This method is called in render, and classifies the messages according to scope
  _extractMessages: (Gen, counts) ->
    isProject = @_scope is 'project'
    activeFile = @linter.activeEditor.getPath()
    ToReturn = []
    @linter.h.genValues(Gen).forEach (Entry) ->
