 # with the document's contents unless keepEditorContents is true. (In which case the document's
 # contents are nuked and replaced with the editor's).
 window.sharejs.extendDoc 'attach_ace', (session, keepEditorContents) ->
-  console.log "attach_ace, this", session
-
   doc = this
   editorDoc = session.getDocument()
   editorDoc.setNewLineMode 'unix'

  doc: null
]

module.run [ "$location", "$timeout", "panels", "scratch", "stream", ($location, $timeout, panels, scratch, stream) ->
  panels.push new class
    name: "streamer"
    order: 3

  
  # Listen for edits in ace
  editorListener = (change) ->
    return if suppress
    applyToShareJS editorDoc, change.data, doc

