-
Notifications
You must be signed in to change notification settings - Fork 384
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: not restore diff editor state #3850
Conversation
This PR was not deployed automatically as @erha19 does not have access to the Railway project. In order to get automatic PR deploys, please add @erha19 to the project inside the project settings page. |
Walkthrough这次修改主要集中在 Changes
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 as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3850 +/- ##
=======================================
Coverage 54.99% 54.99%
=======================================
Files 1556 1557 +1
Lines 94800 94811 +11
Branches 19406 19408 +2
=======================================
+ Hits 52132 52141 +9
- Misses 35451 35454 +3
+ Partials 7217 7216 -1
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
not restore diff editor state
Summary by CodeRabbit
LRUCache
导入和this.restoreState()
调用,以优化代码性能。