c5cec3a6ba
* bump pxt * fix build issues * Auto-gen of projects/summary * removing feild editors moved to pxt * various typing fixes * more typing fixes * fixing various typing issues * Start on integration of new pxt * serial number fixes * gc-ify MMap object * Re-build generated files * fix console listeners * clear lf() warnings * More generated files * also auto-generated * Compilation fixes * fix merge * mostly fixing blocks * fix sim * fix field motors * enable a few features * moving to tsx * try to fix edtiro compilation * more defs * removing commands * removing extra $ * fix blockly warning * hiding images * enabling more pxt features * hide images * setup autorun * add lock on target_reset * update deps * return trylock result * updated pxt * rename video section * add alpha channel * upgraded pxt * bump pxt/version * removed alpha ref * var ceanup * don't do major bump
27 lines
1.1 KiB
TypeScript
27 lines
1.1 KiB
TypeScript
/// <reference path="../node_modules/pxt-core/localtypings/pxtarget.d.ts" />
|
|
/// <reference path="../node_modules/pxt-core/built/pxtblocks.d.ts" />
|
|
/// <reference path="../node_modules/pxt-core/built/pxtcompiler.d.ts" />
|
|
/// <reference path="../node_modules/pxt-core/built/pxtlib.d.ts" />
|
|
/// <reference path="../node_modules/pxt-core/built/pxteditor.d.ts"/>
|
|
/// <reference path="../node_modules/pxt-core/built/pxtsim.d.ts"/>
|
|
|
|
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.editor.ExtensionResult> {
|
|
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<pxt.editor.ExtensionResult>(res);
|
|
}
|