@@ -221,7 +221,7 @@ export default async function ({ addon, msg, console }) {
221221
222222 let topBlocks = this . workspace . getTopBlocks ( ) ;
223223 let labelBlocks = Object . values ( this . workspace . blockDB_ )
224- . filter ( b => b . type . startsWith ( "jwProto_" ) ) ;
224+ . filter ( b => b . type . startsWith ( "jwProto_" ) || b . type . startsWith ( "lmscomments_" ) ) ;
225225
226226 /**
227227 * @param cls
@@ -300,7 +300,9 @@ export default async function ({ addon, msg, console }) {
300300 }
301301
302302 // fall through
303- if ( root . type . startsWith ( "jwProto_" ) ) continue ;
303+ if ( root . type . startsWith ( "jwProto_" ) || root . type . startsWith ( "lmscomments_" ) ) {
304+ continue ;
305+ }
304306
305307 if ( root . startHat_ ) {
306308 // custom, unrecognized hat
@@ -311,14 +313,11 @@ export default async function ({ addon, msg, console }) {
311313 continue ;
312314 }
313315
314- if ( ! root . outputConnection ) {
315- // orphan block stack
316- addBlock (
317- "customStack" , getDescFromField ( root , true ) , root ,
318- { color : root . colour_ }
319- ) ;
320- continue ;
321- }
316+ // orphan block stack/reporter
317+ addBlock (
318+ root . outputConnection ? "customOutput" : "customStack" ,
319+ getDescFromField ( root , true ) , root , { color : root . colour_ }
320+ ) ;
322321 }
323322
324323 let map = this . workspace . getVariableMap ( ) ;
@@ -348,7 +347,7 @@ export default async function ({ addon, msg, console }) {
348347 const clsOrder = {
349348 flag : 0 , receive : 1 , event : 2 , customHat : 3 ,
350349 define : 4 , var : 5 , VAR : 6 , list : 7 , LIST : 8 ,
351- label : 9 , customStack : 10
350+ label : 9 , customStack : 10 , customOutput : 11
352351 } ;
353352
354353 myBlocks . sort ( ( a , b ) => {
0 commit comments