-
Notifications
You must be signed in to change notification settings - Fork 433
feat: support collapse/expand all files in multiDiffEditor #4531
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
/next |
Walkthrough本次更改为多文件差异编辑器(multi-diff editor)引入了“全部折叠”和“全部展开”功能,包括命令、菜单项、上下文感知、接口扩展及本地化支持。主要涉及多文件差异编辑器的命令注册、菜单显示、状态管理和相关接口方法的实现。 Changes
Sequence Diagram(s)sequenceDiagram
participant 用户
participant 菜单/命令
participant WorkbenchEditorService
participant MultiDiffEditor
用户->>菜单/命令: 选择“全部折叠”或“全部展开”
菜单/命令->>WorkbenchEditorService: 获取当前 EditorGroup
WorkbenchEditorService->>MultiDiffEditor: 调用 collapseAll()/expandAll()
MultiDiffEditor->>MultiDiffEditor: 更新所有 diff 条目的 collapsed 状态
Suggested labels
Suggested reviewers
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
yarn install v1.22.22 Tip ⚡️ Faster reviews with caching
Enjoy the performance boost—your workflow just got faster. 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (9)
💤 Files with no reviewable changes (1)
🧰 Additional context used🧬 Code Graph Analysis (1)packages/editor/src/common/editor.ts (1)
⏰ Context from checks skipped due to timeout of 90000ms (9)
🔇 Additional comments (16)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
🎉 PR Next publish successful! 3.8.3-next-1746775533.0 |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #4531 +/- ##
==========================================
- Coverage 52.89% 52.89% -0.01%
==========================================
Files 1677 1677
Lines 103326 103350 +24
Branches 22387 22383 -4
==========================================
+ Hits 54659 54667 +8
- Misses 40488 40504 +16
Partials 8179 8179
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Types
Background or solution
feat: support collapse/expand all files in multiDiffEditor
Changelog
feat: support collapse/expand all files in multiDiffEditor
Summary by CodeRabbit