Skip to content

Conversation

@lizlooney
Copy link
Collaborator

Added workspaces.ts, which provides functions related to blockly workspaces.

Changed code in blocks that called Editor.getEditorForBlocklyWorkspace. Instead, Editor is passed in to mrcOnLoad and mrcOnModuleCurrent, or workspaces.getModuleTypeForWorkspace is used.

Fixes #287

…d to keeping track of blockly workspaces.

Modified editor to call workspaces.addWorkspace and workspaces.removeWorkspace
Modified existing code that use headless blockly workspaces to call workspaces.createHeadlessWorkspace and workspaces.destroyHeadlessWorkspace.
…duleTypeForWorkspace

instead of trying to get the corresponding editor. If the block is in a headless
workspace, there is no corresponding editor.
@lizlooney lizlooney requested a review from alan412 October 28, 2025 06:10
@lizlooney lizlooney changed the title Fix problem with deployment Fix problem with deploy Oct 28, 2025
Copy link
Collaborator

@alan412 alan412 left a comment

Choose a reason for hiding this comment

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

LGTM

@alan412 alan412 merged commit 926d78d into wpilibsuite:main Oct 30, 2025
1 check passed
@lizlooney lizlooney deleted the pr_issue_287_deploy_bug branch October 30, 2025 04:17
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.

Deploy fails if current editor tab is not the robot and the robot contains a component

2 participants