Skip to content

Conversation

@gonfunko
Copy link
Contributor

This PR fixes #471 by removing checks/conditions for a null cursor. The cursor was made always non-null in RaspberryPiFoundation/blockly#9210, so these are now unnecessary.

@gonfunko gonfunko requested a review from a team as a code owner July 14, 2025 22:33
@gonfunko gonfunko requested review from BenHenning and removed request for a team July 14, 2025 22:33
Copy link
Collaborator

@BenHenning BenHenning left a comment

Choose a reason for hiding this comment

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

LGTM, thanks @gonfunko!

Just had one additional clean-up suggestion.

Copy link
Collaborator

@BenHenning BenHenning left a comment

Choose a reason for hiding this comment

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

Ah, I didn't realize my comment hadn't posted since the line isn't part of the diff.

I suggest removing the EsLint failure in edit.ts for removing the LineCursor import since there are already cursor clean-ups happening here, anyway.

@gonfunko gonfunko merged commit 48600df into main Jul 16, 2025
10 of 11 checks passed
@gonfunko gonfunko deleted the nullchecks branch July 16, 2025 17:58
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.

Handle cases when the workspace's cursor is null, or disallow that state

3 participants