fix(toolbar): isolate consecutive command history - #368
Open
sssssirius7 wants to merge 1 commit into
Open
sssssirius7 wants to merge 1 commit into
sssssirius7 wants to merge 1 commit into
Conversation
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary / 摘要
Motivation / 背景与动机
replaceRangehistory-isolation option.Changes / 变更内容
packages/core:isolateHistoryoption toEditorAPI.replaceRange().packages/plugin-*:setDocument()+setSelection()to atomicreplaceRange().Normal textmenu action.apps/electron-demo:openspec/:Testing / 测试
pnpm testpasses / 全绿未运行全量测试;已运行受影响测试,共 97 个用例通过。
pnpm build) / 受影响包构建通过@floatboat/nexus-core
和@floatboat/nexus-plugin-toolbar` 构建通过。Added coverage for atomic replacement, isolated Toolbar history, exact selections, consecutive Toolbar undo, Normal text UI action, and IME composition flushing.
Compliance / 合规自检
AI-assisted notes / AI 使用说明:
AI tools assisted with code exploration, implementation, test authoring, and review.
dist/,dist-electron/, compiled.jsfrom.ts) / 未提交构建产物.env/ personal vault data committed / 无敏感信息Checklist / 自检清单
live-preview-table.ts→ walked through the 12 Table Widget rules in CLAUDE.md / 已核对 12 条表格规则Screenshots / Recordings · 截图或录屏 (UI changes)