/// /// /// /// /// /// import { deployCoreAsync, initAsync } from "./deploy"; import { showUploadDialogAsync } from "./dialogs"; export let projectView: pxt.editor.IProjectView; pxt.editor.initExtensionsAsync = function (opts: pxt.editor.ExtensionOptions): Promise { pxt.debug('loading pxt-ev3 target extensions...') projectView = opts.projectView; const res: pxt.editor.ExtensionResult = { deployAsync: deployCoreAsync, showUploadInstructionsAsync: showUploadDialogAsync }; initAsync().catch(e => { // probably no HID - we'll try this again upon deployment }) return Promise.resolve(res); }