TurboWarp / scratch-vm

Scratch VM with a JIT compiler and more features
https://turbowarp.org/
Mozilla Public License 2.0
75 stars 72 forks source link

Allow `refreshBlocks()` to specify extension #228

Open FurryR opened 1 week ago

FurryR commented 1 week ago

Resolves

The base of dynamic blocks.

Proposed Changes

Added a optional parameter to refreshBlocks, allowing specify which extension to refresh.

Reason for Changes

Performance considerations. This change was originally made by Gandi IDE, used for dynamic blocks (maybe), and I think we also need one.

Test Coverage

N/A. No tests for refreshBlocks found.

LilyMakesThings commented 1 week ago

Oh this'd be amazing