-
Notifications
You must be signed in to change notification settings - Fork 382
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: document status may out of sync #3954
Conversation
🚅 Previously deployed to Railway in the core project. Environment has been deleted. |
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 Configuration File (
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3954 +/- ##
==========================================
+ Coverage 54.75% 54.83% +0.07%
==========================================
Files 1561 1558 -3
Lines 96435 95193 -1242
Branches 19973 19498 -475
==========================================
- Hits 52804 52199 -605
+ Misses 36130 35720 -410
+ Partials 7501 7274 -227
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
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.
LGTM
这个也只是缓解编译器相关状态同步问题,具体不同步原因还要再继续查 |
Types
Background or solution
插件层状态不同步,做一下各种时机的同步
主要是做了两件事情:
Changelog
Summary by CodeRabbit
dirty
,用于表示文档是否存在未保存的更改,增强了文档状态管理。syncDocumentModelToExtThread
,改进文档模型与外部线程的同步。