Repository navigation
fix(notebook): restore selection after undo edits - #74
Merged
Merged
Conversation
The split-mode hierarchy action can still be disabled immediately after the client moves its caret. Use the driver's bounded action retry while keeping the hierarchy assertions, and capture probe logs on CI failures. Refs #69
The undo RPC reply can arrive before its streamed cell edits. Selecting old views then lets the following splice remove them and lose selection. Send selection through the same ordered flow, only to the editor that requested undo or redo, and keep focus in a cell the user began editing. Exercise repeated undo and redo of a multi-cell move in the UI test. Refs #67
2 tasks
The list fixture's click can leave the popup open without invoking the chosen action. Focus the popup list, select the item and confirm it with Enter, then wait for closure. Repeat copy and undo to exercise activation while keeping the existing notebook and extension-host assertions. Refs #70
Allow a bounded 60-second connection idle margin in both test IDEs. A controlled 25-second backend pause disconnects the default connection but survives with this margin. Refs #71
2 of 5 tasks
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.
What this changes
Restore notebook selection through the ordered edit stream after undo and redo. The separate RPC reply could arrive first, select the old cell views, and then lose that selection when the following splice removed them. Send the selection event only to the editor that requested the operation, keeping the existing guard against taking focus from a cell the user began editing.
The drag UI test now repeats undo and redo of a multi-cell move and checks selection in both directions.
Fixes #67
Stacked on the hierarchy readiness PR (base: test/ui-hierarchy-ready); this PR adds only the notebook ordering fix.
How it was tested
Checklist
A new feature has a UI test.Existing notebook behavior; the regression UI test was extended and run.This restores the existing notebook undo behavior; no new API or setup.docs/is updated where behaviour changed,docs/status.mdespecially.Third-party material keeps its notice and is listed inNo third-party material added.NOTICE.md.