 
 processContext context
 
-positionCodeOverlay 0
 setEditorOverlayContext 'default'
-
-console.log 'asd'

  positionCodeOverlay()
  setCodeContextDisplay itemErrored, selectionRange

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

editorSession.on 'changeScrollTop', -> positionCodeOverlay()

editor.focus()
document.documentElement.classList.add 'page-loaded'

    propertyPathEl.style.display = 'none'

positionCodeOverlay = ->
  rowEl = editorEl.querySelector '.ace_content .ace_marker-layer .ace_active-line'
  aceContentEl = editorEl.querySelector '.ace_content'

  if not rowEl or not aceContentEl
    overlayEl.setAttribute 'target-off-screen', ''
    return

  top = 0
  if rowEl and aceContentEl
    overlayEl.removeAttribute 'target-off-screen'
    top = rowEl.offsetTop + parseInt(aceContentEl.style.marginTop, 10)

  if top + overlayEl.clientHeight > document.documentElement.clientHeight
    top = Math.max(0, document.documentElement.clientHeight - overlayEl.clientHeight)

  overlayEl.setAttribute 'overflow-y', (document.documentElement.clientHeight - overlayEl.clientHeight <= 0)
  overlayEl.style.top = top + 'px'

setEditorOverlayContext = (item) ->
  contextHTML = ''
