This aligns more to vscodes notebook behaviour that when deleting the last cells where one of them is selected, then the last cell in the notebook is selected. Previously no cell was selected after that.
How to test
Open a notebook with at least two cells. Select the last cell and delete it. The previous cell should now be selected
Follow-ups
Review checklist
[x] As an author, I have thoroughly tested my changes and carefully followed the review guidelines
What it does
This aligns more to vscodes notebook behaviour that when deleting the last cells where one of them is selected, then the last cell in the notebook is selected. Previously no cell was selected after that.
How to test
Open a notebook with at least two cells. Select the last cell and delete it. The previous cell should now be selected
Follow-ups
Review checklist
Reminder for reviewers