hunk.code_window:   properties = Normalize.selectionProperties(properties)
     const { state } = transform
     const { document, selection } = state
     const prevProps = {}
  
hunk.labels: keep keep keep keep add keep
hunk.after_edit:   const props = {}
  
hunk.file_path: src/transforms/operations.js
hunk.type: add
file: 
  import assert from 'assert'
  
  export default function (state) {
    const { document, selection } = state
    const texts = document.getTexts()
    const first = texts.first()
    const range = selection.merge({
      anchorKey: first.key,
      anchorOffset: 0,
      focusKey: first.key,
      focusOffset: 0
    })
  
    const next = state
      .transform()
      .moveTo(range)
      .setInline({ type: 'code' })
      .apply()
  
    assert.deepEqual(
      next.selection.toJS(),
      range.toJS()
    )
  
    return next
  }
  