-
Notifications
You must be signed in to change notification settings - Fork 403
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: use modified uri handling for diff editor #4150
Conversation
Walkthrough此拉取请求对 Changes
Possibly related PRs
Suggested labels
Suggested reviewers
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
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 (
|
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.
Actionable comments posted: 0
🧹 Outside diff range and nitpick comments (1)
packages/extension/src/browser/vscode/contributes/menu.ts (1)
253-256
: 改进了差异编辑器的 URI 处理逻辑修改后的实现更符合差异编辑器的使用场景,通过优先获取修改后的 URI 来确保菜单操作作用于最新的内容上。
不过建议添加一些注释来解释为什么要使用 modified URI:
- // 对于 DiffEditor 情况时,尝试通过 query 获取 modified URI 作为首个参数 + // 对于 DiffEditor 情况时,优先使用 modified URI 作为首个参数 + // 这样可以确保菜单操作作用于最新的修改内容上,提供更好的用户体验
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #4150 +/- ##
=======================================
Coverage 54.22% 54.22%
=======================================
Files 1598 1598
Lines 97652 97652
Branches 19976 19984 +8
=======================================
Hits 52954 52954
Misses 37125 37125
Partials 7573 7573
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Types
Background or solution
在 Diff 编辑器场景下,修改后的内容展示优先级更高
Changelog
use modified uri handling for diff editor
Summary by CodeRabbit