function readFile(callUI, data) {
  let content = String(Data.readFileAsText(data.path))

  callUI('setData', {
    content,
    keepDataPath: data.keepDataPath
  })
}
Handlers

Handlers called from the UI.