Repository navigation
Fix race when starting the search - keep correct filter - #19765
Conversation
|
Thanks for making a pull request to jupyterlab! |
| private _onNotebookStateChanged(_: Notebook, args: IChangedArgs<unknown>) { | ||
| if (args.name === 'mode') { | ||
| if (this._delayedModeChangeHandler !== null) { | ||
| // Only the most recent mode transition is of interest. |
There was a problem hiding this comment.
Should we use a Debouncer from Lumino here, instead of handling the timeout ourself ?
brichet
left a comment
There was a problem hiding this comment.
Thanks @krassowski, LGTM
|
Owee, I'm MrMeeseeks, Look at me. There seem to be a conflict, please backport manually. Here are approximate instructions:
And apply the correct labels and milestones. Congratulations — you did some good work! Hopefully your backport PR will be tested by the continuous integration and merged soon! Remember to remove the If these instructions are inaccurate, feel free to suggest an improvement. |
References
Code changes
_updateSelectionMode()acts on.Toggles search in line selectionUI test.50 local runs of
Toggles search in line selectionwithout the 200 ms wait:User-facing changes
Before: pressing Ctrl+F with text selected in a cell sometimes reset the search filter from "Search in 1 Selected Line" to "Search in 1 Selected Cell", and the search then covered the whole cell.
After: the line selection is kept, and the search covers the selected lines.
Backwards-incompatible changes
None.
AI usage