old_contents: /* global Editor */
  var Fs = require('fire-fs');
  var Ipc = require('ipc');
  var CodeEditor = require('./editor.js');
  var enginePath = Editor.url( 'app://utils/api/engine' );
  var editorPath = Editor.url( 'app://utils/api/editor-framework' );
  var assetdbPath = Editor.url( 'app://utils/api/asset-db');
  var runtimePath = Editor.runtimePath;
  
  require('./firedoc-helper.js').generateBuiltin(enginePath, editorPath, assetdbPath);
  
  document.addEventListener('DOMContentLoaded', function(event) {
    var url = Editor.argv.url;
    var path = Editor.argv.path;
  
    var editor = new CodeEditor(path, url);
  
    Fs.readFile(path, function (err, buf) {
      editor.aceEditor.setValue(buf.toString('utf8'), -1);
    });
  
    Ipc.on('panel:open', function (argv) {
      var url = argv.url;
      var path = argv.path;
      Fs.readFile(path, function (err, buf) {
        editor.aceEditor.setValue(buf.toString('utf8'), -1);
      });
    });
  
  });
  
new_contents: (() => {
    'use strict';
  
    /* global Editor */
    const Fs = require('fire-fs');
    const Ipc = require('ipc');
    const CodeEditor = require('./editor.js');
  
    const enginePath = Editor.url( 'app://utils/api/engine' );
    const editorPath = Editor.url( 'app://utils/api/editor-framework' );
    const assetdbPath = Editor.url( 'app://utils/api/asset-db');
  
    require('./firedoc-helper.js').generateBuiltin(enginePath, editorPath, assetdbPath);
  
    document.addEventListener('DOMContentLoaded', () => {
      let url = Editor.argv.url;
      let path = Editor.argv.path;
  
      let editor = new CodeEditor(path, url);
  
      Fs.readFile(path, (err, buf) => {
        editor.aceEditor.setValue(buf.toString('utf8'), -1);
      });
  
      Ipc.on('panel:run', argv => {
        // let url = argv.url;
        let path = argv.path;
  
        Fs.readFile(path, (err, buf) => {
          editor.aceEditor.setValue(buf.toString('utf8'), -1);
        });
      });
  
    });
  })();
  
subject: fix dbl-click not open script when code-editor exists