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 selection and improve active text editor behaviour #14480

Merged
merged 1 commit into from
Nov 21, 2024

Conversation

jonah-iden
Copy link
Contributor

@jonah-iden jonah-iden commented Nov 19, 2024

What it does

This fixes the selection property in the vscode api of SimpleMonacoEditors when selecting text bottom to top and improves the activeTextEditor behaviour further to align it more to vscode.
Specificly this improves the case when switching from a different file to an already open notebook editor and the currently selected cell is a code cell, then the cell is set at the activeTextEditor

Fixes #14475
Fixes #14476
Fixes #14477

How to test

you can use this extension
Both with the Notebook-Test: get current selection or the Notebook-Test: get active text editor command

Follow-ups

Review checklist

Reminder for reviewers

@jonah-iden jonah-iden requested a review from msujew November 19, 2024 10:08
Copy link
Member

@msujew msujew left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me 👍

@msujew msujew added the notebook issues related to notebooks label Nov 21, 2024
@jonah-iden jonah-iden merged commit 5c10d45 into master Nov 21, 2024
11 checks passed
@jonah-iden jonah-iden deleted the jiden/notebook-active-text-editor-selection branch November 21, 2024 12:37
@github-actions github-actions bot added this to the 1.56.0 milestone Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
notebook issues related to notebooks
Projects
Archived in project
2 participants