[go: nahoru, domu]

Skip to content
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(editor): add missing edit stack when save #2192

Merged
merged 6 commits into from
Jan 11, 2023
Merged

fix(editor): add missing edit stack when save #2192

merged 6 commits into from
Jan 11, 2023

Conversation

bytemain
Copy link
Member
@bytemain bytemain commented Jan 11, 2023

Types

  • 🐛 Bug Fixes

Background or solution

close: #1906

研究发现:
输入第二个字符按保存后,monaco editor 并没有把这个变更 push 到 editStack 中。
但是这个时候,点击一下编辑器,这个变更就被 push 到 stack 里了。

也就是说,保存的时候补偿一个 pushStack 应该就好了

Changelog

add missing edit stack when save

@github-actions github-actions bot added the 🐞 bug Something isn't working label Jan 11, 2023
@bytemain bytemain changed the title fix(editor): compensate for missing edit stack when save fix(editor): add missing edit stack when save Jan 11, 2023
@codecov
Copy link
codecov bot commented Jan 11, 2023

Codecov Report

Base: 59.61% // Head: 57.79% // Decreases project coverage by -1.81% ⚠️

Coverage data is based on head (c52207b) compared to base (4cc2a17).
Patch coverage: 46.68% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2192      +/-   ##
==========================================
- Coverage   59.61%   57.79%   -1.82%     
==========================================
  Files        1327     1316      -11     
  Lines       94968    82981   -11987     
  Branches    21098    17263    -3835     
==========================================
- Hits        56612    47957    -8655     
+ Misses      34599    31830    -2769     
+ Partials     3757     3194     -563     
Flag Coverage Δ
jsdom 52.74% <46.47%> (-1.67%) ⬇️
node 16.47% <10.26%> (+0.11%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
packages/addons/src/browser/file-drop.service.ts 12.79% <0.00%> (-2.94%) ⬇️
packages/collaboration/src/common/types.ts 100.00% <ø> (ø)
packages/comments/src/common/index.ts 100.00% <ø> (ø)
packages/components/src/icon/iconfont/iconMap.ts 100.00% <ø> (ø)
...ponents/src/recycle-tree/basic/tree-node.define.ts 8.69% <0.00%> (-0.40%) ⬇️
.../components/src/recycle-tree/basic/tree-service.ts 5.88% <0.00%> (+0.32%) ⬆️
...ackages/components/src/recycle-tree/basic/types.ts 100.00% <ø> (ø)
...ges/components/src/recycle-tree/types/tree-node.ts 100.00% <ø> (ø)
...kages/components/src/recycle-tree/types/watcher.ts 100.00% <ø> (ø)
packages/core-browser/src/bootstrap/connection.ts 48.14% <0.00%> (-0.54%) ⬇️
... and 551 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@erha19 erha19 merged commit 4725c02 into main Jan 11, 2023
@erha19 erha19 deleted the fix/undo-stack branch January 11, 2023 10:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] 编辑器撤销操作表现奇怪
2 participants