core
core copied to clipboard
feat: support multi-person collaborative editing
Types
- [x] 🎉 New Features
Background
This is an advance subject of ASoC 2022 and https://github.com/opensumi/core/issues/1103.
For more details, visit https://github.com/opensumi/core/issues/1097.
close https://github.com/opensumi/core/issues/1097
Milestone
- [x] Basic collaboration function
- [ ] Integration of user model
- [ ] Optimizing and refactoring
Changelog
- Init collaboration module
- Add basic functions of collaboration
Codecov Report
Base: 57.64% // Head: 57.69% // Increases project coverage by +0.04%
:tada:
Coverage data is based on head (
b1c84bf
) compared to base (f1caaec
). Patch coverage: 66.20% of modified lines in pull request are covered.
Additional details and impacted files
@@ Coverage Diff @@
## main #1274 +/- ##
==========================================
+ Coverage 57.64% 57.69% +0.04%
==========================================
Files 1256 1269 +13
Lines 78425 78925 +500
Branches 16438 16511 +73
==========================================
+ Hits 45210 45537 +327
- Misses 30219 30376 +157
- Partials 2996 3012 +16
Flag | Coverage Δ | |
---|---|---|
jsdom | 52.53% <63.80%> (+0.06%) |
:arrow_up: |
node | 15.80% <13.60%> (-0.02%) |
:arrow_down: |
Flags with carried forward coverage won't be shown. Click here to find out more.
Impacted Files | Coverage Δ | |
---|---|---|
packages/collaboration/src/browser/index.ts | 0.00% <0.00%> (ø) |
|
packages/collaboration/src/node/index.ts | 0.00% <0.00%> (ø) |
|
...ackages/collaboration/src/browser/cursor-widget.ts | 12.69% <12.69%> (ø) |
|
...collaboration/src/browser/collaboration.service.ts | 74.35% <74.35%> (ø) |
|
...kages/collaboration/src/node/y-websocket-server.ts | 76.19% <76.19%> (ø) |
|
...ges/collaboration/src/browser/textmodel-binding.ts | 76.43% <76.43%> (ø) |
|
packages/collaboration/src/browser/color.ts | 100.00% <100.00%> (ø) |
|
packages/collaboration/src/common/commands.ts | 100.00% <100.00%> (ø) |
|
packages/collaboration/src/common/constants.ts | 100.00% <100.00%> (ø) |
|
packages/collaboration/src/common/index.ts | 100.00% <100.00%> (ø) |
|
... and 8 more |
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.
:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.
基本功能大致完成,操作效果如下
- 编辑
https://user-images.githubusercontent.com/28241963/180725600-e960c1f3-e2e9-4907-878d-4f58883cfe86.mov
- 新建文件,撤销与重做
https://user-images.githubusercontent.com/28241963/180726053-bbc5e31c-c36d-4cda-aa62-85331c298476.mov
🐮🍺
Edit title for CI test
告一段落,这里尝试简单提出后续的工作:https://github.com/situ2001/opensumi-core/issues/15
@situ2001 冲突处理一下