Skip to content

Conversation

@riknoll
Copy link
Member

@riknoll riknoll commented Jan 6, 2026

fixes https://github.com/microsoft/pxt-minecraft/issues/3016

fix monaco toolbox filtering and snippets for APIs that use blockAliasFor.

our monaco toolbox filtering currently filters out all of these APIs because they generally start with an underscore, so this PR changes that check so that it doesn't apply if blockAliasFor is set.

also includes a fix that makes sure we follow the blockAliasFor link when generating snippets, which matches the blockly compiler behavior. currently we just generate snippets that include the non-alias API name, which is usually an underscore API that we don't actually want in the snippet.

@riknoll riknoll requested a review from a team January 6, 2026 19:28
@riknoll riknoll enabled auto-merge (squash) January 6, 2026 21:00
@abchatra
Copy link
Collaborator

abchatra commented Jan 7, 2026

We need to hotfix this for Minecraft.

@riknoll riknoll merged commit fc85d27 into master Jan 7, 2026
20 checks passed
@riknoll riknoll deleted the dev/riknoll/minecraft-block-alias-for-python-snippets branch January 7, 2026 20:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants