Add a output port field editor

This commit is contained in:
Sam El-Husseini
2017-12-24 17:46:58 -08:00
parent afaedaa0b2
commit a1b059171b
6 changed files with 170 additions and 1 deletions

View File

@ -142,7 +142,11 @@ namespace pxt.editor {
initExtensionsAsync = function (opts: pxt.editor.ExtensionOptions): Promise<pxt.editor.ExtensionResult> {
pxt.debug('loading pxt-ev3 target extensions...')
const res: pxt.editor.ExtensionResult = {
deployCoreAsync,
fieldEditors: [{
selector: "ports",
editor: FieldPorts
}],
deployCoreAsync
};
initAsync().catch(e => {
// probably no HID - we'll try this again upon deployment