   row = selectionRange.start.row
   col = selectionRange.start.column
   src = editorSession.getValue()
-
-  lastSelectionRangeRow = row
 
   try
     item = getItemAt src, row, col

  catch
    itemErrored = true

  positionCodeOverlay row
  setCodeContextDisplay itemErrored, selectionRange

window.addEventListener 'resize', -> positionCodeOverlay(lastSelectionRangeRow)

document.documentElement.classList.add 'page-loaded'


    overlayEl.style.display = 'none'
    propertyPathEl.style.display = 'none'

positionCodeOverlay = ->
  position = ->
    rowEl = editorEl.querySelector '.ace_content .ace_marker-layer .ace_active-line'
    if rowEl
      overlayEl.style.top = rowEl.offsetTop + 'px'

  position()
  setTimeout position, 50

setEditorOverlayContext = (item) ->
  item = path: 'default' if not item.path
  contextPath = simplifyArrayPaths item.path
  contextHTML = INSTALL_JSON_CONTEXT[contextPath]?(item) or ''
  setTimeout ->
    overlayEl.innerHTML = contextHTML

positionCodeOverlay 0
setEditorOverlayContext 'default'
