Closed bytemain closed 2 weeks ago
Attention: Patch coverage is 0%
with 2 lines
in your changes missing coverage. Please review.
Project coverage is 55.32%. Comparing base (
7c7abcc
) to head (4047838
).
Files | Patch % | Lines |
---|---|---|
...sion/src/hosted/api/vscode/doc/doc-manager.host.ts | 0.00% | 2 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Types
Background or solution
现状是 ext 层 document 的 dirty 状态会和 browser 层不同步。
如果此时 browser 层的文本是非 dirty 的,也就意味着它不会向插件层发送 Save 事件,这里我们在 onWillSave 的时候发一个事件去同步当前的状态。
这样至少保证了用户按 ctrl+s 的时候,状态能同步到 ext host
Changelog
fix extesnion document state may not sync from main thread