     @_messages.forEach (message) =>
       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(
+        @_markers.push marker = @linter.activeEditor.markBufferRange message.range, {invalidate: 'never'}
+        @linter.activeEditor.decorateMarker(
           marker, type: 'line-number', class: "linter-highlight #{message.class}"
         )
-        @_decorations.push @linter.activeEditor.decorateMarker(
+        @linter.activeEditor.decorateMarker(
           marker, type: 'highlight', class: "linter-highlight #{message.class}"
         )
       Element = Message.fromMessage(message, @_scope is 'project')


  _renderPanel: ->
    @_panel.innerHTML = ''
    @_removeDecorations()
    @_removeBubble()
    if not @_messages.length
      return @setPanelVisibility(false)


  # this method is called on package deactivate
  destroy: ->
    @_removeMarkers()
    @_panelWorkspace.destroy()
    @_removeBubble()
    for statusTile in @_statusTiles
