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

Add background to maintain selection highlight #2636

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

FrancisMengx
Copy link
Contributor

@FrancisMengx FrancisMengx commented May 15, 2024

Changes

Add a new option in the setContentModel function to indicate maintaing selection UI even when the focus has moved away.

fix test

fix test

Add background to maintain selection highlight
@FrancisMengx FrancisMengx force-pushed the u/xiameng/add-background-for-copilot-treatment branch from ef023d1 to b42f20a Compare May 16, 2024 18:56
@JiuqingSong
Copy link
Contributor

Please fix test

@@ -57,4 +57,6 @@ export interface EditorContext {
* Root Font size in Px.
*/
rootFontSize?: number;

selectionClassName?: string;
Copy link
Contributor

Choose a reason for hiding this comment

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

please add comment

@JiuqingSong
Copy link
Contributor

Please add description

@JiuqingSong
Copy link
Contributor

Question: how will this new feature be used? It seems the new option is not exposed to any public API?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants