-
Notifications
You must be signed in to change notification settings - Fork 5
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
Support concurrent formatting of Text #138
Conversation
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.
Thanks for your contribution.
@@ -75,14 +75,32 @@ internal data class CrdtText( | |||
range: RgaTreeSplitPosRange, | |||
attributes: Map<String, String>, | |||
executedAt: TimeTicket, | |||
): List<TextChange> { | |||
latestCreatedAtMapByActor: Map<ActorID, TimeTicket>? = null, | |||
): Pair<Map<ActorID, TimeTicket>, List<TextChange>> { |
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.
I think the return type is getting too complex now 🤔
It would be better to implement a custom class.
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.
I added TextOperationResult
which can be used as the return type for both edit()
and style()
: 3b2ca89
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #138 +/- ##
==========================================
- Coverage 78.22% 78.18% -0.05%
==========================================
Files 63 63
Lines 3679 3713 +34
Branches 573 579 +6
==========================================
+ Hits 2878 2903 +25
- Misses 503 506 +3
- Partials 298 304 +6
☔ View full report in Codecov by Sentry. |
What this PR does / why we need it?
Support concurrent formatting of Text.
Any background context you want to provide?
I'll change the base branch to
main
aftergc
is merged.What are the relevant tickets?
Fixes #
Checklist