     bubble
 
   renderPanel: ->
-    @panel.innerHTML = ''
     @removeMarkers()
     @removeBubble()
-    if not @messages.size
-      return @setPanelVisibility(false)
-    @setPanelVisibility(true)
     activeEditor = atom.workspace.getActiveTextEditor()
     @messages.forEach (message) =>
-      if @scope is 'File' then return unless message.currentFile
+      return if @scope isnt 'Project' and not message.currentFile
       if message.currentFile and message.range #Add the decorations to the current TextEditor
         @markers.push marker = activeEditor.markBufferRange message.range, {invalidate: 'never'}
         activeEditor.decorateMarker(

    else
      messages = @messages
    return @setPanelVisibility(false) unless messages.size
    @panel.innerHTML = ''
    messages.forEach (message) =>
      return if @scope isnt 'Project' and not message.currentFile

        if @underlineIssues then activeEditor.decorateMarker(
          marker, type: 'highlight', class: "linter-highlight #{message.class}"
        )
    @updateBubble()

  renderPanelMessages: ->
