Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(pte): tools are active only when all blocks use the tool #6524
fix(pte): tools are active only when all blocks use the tool #6524
Changes from all commits
c8c91c1
038faba
03b3ad8
ac6ed9c
a44579f
2dac130
f76741b
7a107e5
7c3b865
3b683fe
fec2fbc
29eb806
09e84a0
caaca42
3332ae4
b9ac7cb
81e4d01
a5fbc05
10a080e
2f0e9e7
0b25120
d3c0020
6a2554b
07617b3
fc5a2b6
569c9e9
b1f3490
b35f437
f47844a
261b106
363f339
aee350a
d46a1a2
e30e42b
a2df20a
c045eb7
f57db72
d85ba5a
bb5d251
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On the face of it, this seems identical, but
match
essentially filters all blocks in the selection, which then conceals whether any of these blocks are not of a list typeThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we need to return
every
here or do we just care that there is> 0
blocks that meet this condition?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We do care that every block has the list style. For example if the selection was on the following:
we'd have 3
selectedBlocks
, but only 1 would have bullet list style, so we'd want to return false