Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Exclude focused block from block completer options #7273
Today, the block completer offers a Paragraph option when invoked from a Paragraph block, offering to replace the current block with another of the same type. It is odd to see and takes a menu slot that could be filled with a useful option. This PR updates the block completer to exclude the current block type from its list of options.
How has this been tested?
I added a unit test and ran the unit tests successfully. I also manually tested the block completer, observed the absence of the Paragraph option when using the completer from a
It works as expected, small but nice improvement. I had one comment where the current function name suggests that it would return an object, I proposed a different name.