Skip to content

Conversation

@TannerGabriel
Copy link
Contributor

This PR adds a null check for mainWorkspace in getGlobalNames, fixing errors with @blockly/toolbox-search, which can invoke the function before the workspace is initialized.

Resolves #73

Signed-off-by: TannerGabriel <gabrieltanner.code@gmail.com>
@TannerGabriel TannerGabriel changed the title Support getGlobalNames call with before workspace is initialized Support getGlobalNames call before workspace is initialized Sep 4, 2025
Copy link
Collaborator

@mark-friedman mark-friedman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mark-friedman mark-friedman merged commit 71fb729 into mit-cml:main Sep 12, 2025
@TannerGabriel TannerGabriel deleted the fix/toolbox-search-plugin branch September 12, 2025 19:46
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.

Uncaughed error when using @blockly/toolbox-search plugin

2 participants