-
Notifications
You must be signed in to change notification settings - Fork 109
Migrate editor instantiation to setup function #7371
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
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #7371 +/- ##
==========================================
- Coverage 59.65% 59.65% -0.01%
==========================================
Files 486 486
Lines 37288 37286 -2
Branches 1097 1097
==========================================
- Hits 22245 22243 -2
Misses 14937 14937
Partials 106 106 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
55ce342 to
2b7dc03
Compare
Signed-off-by: Max <[email protected]>
Signed-off-by: Max <[email protected]>
Move its definition into the setup function. One problem that becomes apparent here - but that we probably already have: On a reconnect the provider will change. But it remains the same in the collaboration cursor extension effectively disconnecting the two. Signed-off-by: Max <[email protected]>
Keep the same awareness state - even when a new provider instance is created - for example on reconnect. Signed-off-by: Max <[email protected]>
Signed-off-by: Max <[email protected]>
2b7dc03 to
4a49f73
Compare
mejo-
left a comment
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.
Great to see the issue with syncService in CollaborationCursor after reconnect being resolved and editor creation being moved to the setup function ❤️
What is missing to remove all the editor === null handling (i.e. this.editor?.something)? In any case, ready to get merged from my side 🎉
Based on #7313.
Move sync service and sync service provider into the setup function
so we can also initialize the editor there right away.