Update extensions to load when deserializing monitors. This is necessary when the monitor is the only part of the project that uses the extension. Update extension monitor color category.

This commit is contained in:
Karishma Chadha 2018-11-09 23:34:06 -05:00
parent df24ca7b46
commit 14bee14d8c
2 changed files with 10 additions and 4 deletions
src/engine

View file

@ -2102,9 +2102,9 @@ class Runtime extends EventEmitter {
const block = categoryInfo.blocks.find(b => b.info.opcode === opcode);
if (!block) return;
// TODO: should this use some other category? Also, we may want to format the label in a locale-specific way.
// TODO: we may want to format the label in a locale-specific way.
return {
category: 'data',
category: 'extension', // This assumes that all extensions have the same monitor color.
label: `${categoryInfo.name}: ${block.info.text}`
};
}