```coffeescript
{View} = require 'atom'
MarkerView = require './marker-view'
module.exports =
class MinimapSelectionView extends View
  markers: []
  @content: ->
    @div class: 'minimap-selection'

  initialize: (@minimapView) ->
    @subscribe @minimapView.editorView, "selection:changed", @handleSelection

  attach: ->
    @minimapView.miniUnderlayer.append(this)
    @handleSelection()

  destroy: ->
    @detach()
    @unsubscribe()
    @minimapView = null

  handleSelection: =>
    @removeMarkers()

    {editor} = @minimapView

    return if editor.getSelection().isEmpty()

    for selection in editor.getSelections()
      marker = new MarkerView(editorView: @minimapView, marker: selection.marker)
      @markers.push marker
      @append marker.element

  removeMarkers: ->
    return unless @markers?
    return if @markers.length is 0
    marker.element.remove() for marker in @markers
    marker = null
    @markers = []
```

Implement support for the new minimap decoration API
user
```coffeescript
{View} = require 'atom'
MarkerView = require './marker-view'
module.exports =
class MinimapSelectionView extends View
  decorations: []
  @content: ->
    @div class: 'minimap-selection'

  initialize: (@minimapView) ->
    @subscribe @minimapView.editorView, "selection:changed", @handleSelection
    @subscribe @minimapView.editorView, "cursor-added", @handleSelection
    @subscribe @minimapView.editorView, "cursor-moved", @handleSelection
    @subscribe @minimapView.editorView, "cursor-removed", @handleSelection

  attach: ->
    @minimapView.miniUnderlayer.append(this)
    @handleSelection()

  destroy: ->
    @detach()
    @unsubscribe()
    @minimapView = null

  handleSelection: =>
    @removeDecorations()

    {editor} = @minimapView

    return if editor.getSelection().isEmpty()

    for selection in editor.getSelections()
      @decorations.push @minimapView.decorateMarker(selection.marker, type: 'highlight-under', scope: '.editor .selection .region')

  removeDecorations: ->
    return if @decorations.length is 0
    decoration.destroy() for decoration in @decorations
    @decorations = []
```
assistant