Xcratch Extension Palette Refresh

Use when a scratch-vm / Xcratch extension creates, deletes, or renames a variable or list programmatically (e.g. target.lookupOrCreateList / createVariable / deleteVariable) and the change does NOT appear in the editor block palette until the user re-opens the Code tab or switches sprites. Make sure to use this whenever programmatic changes to the VM variable/list model (or custom My Blocks procedures) are not reflected in the Scratch editor palette right away, or whenever someone asks how to force the Blockly toolbox / variable-list flyout to refresh from extension code. Also covers the companion bug this fix introduces: calling requestBlocksUpdate mid-execution orphans the running script's yellow stack-glow highlight (the outline stays lit until the Code tab is reopened, or disappears while still running). Trigger phrases: list created but not in palette, variable not showing until tab switch, requestBlocksUpdate / emitWorkspaceUpdate did not update the palette, refresh toolbox flyout, force variable catego

xcratch Updated

File contents

xcratch/xcratch-skills/tree/main/skills/xcratch-extension-palette-refresh commit d314c5574f

Frequently asked questions

npx skillmds@latest add xcratch/xcratch-extension-palette-refresh