google / blockly

The web-based visual programming editor.
https://developers.google.com/blockly/
Apache License 2.0
12.51k stars 3.72k forks source link

fix: include potential variables in variable dropdowns in the flyout #8574

Closed gonfunko closed 2 months ago

gonfunko commented 2 months ago

The basics

The details

Blockly has two sets of variables: those in the main workspace, and those that exist solely in the flyout. The latter were not included in the dropdown list of variables shown by FieldVariable however; this PR resolves that. This fixes https://github.com/gonfunko/scratch-blocks/issues/149.