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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't enable notebook copy if active element is not in the notebook dom #202035

Merged
merged 1 commit into from
Jan 8, 2024

Conversation

mjbvz
Copy link
Contributor

@mjbvz mjbvz commented Jan 8, 2024

Fixes #201178

Fixes copying text from the chat window when a notebook editor is active

Seems to work in my testing but may be overlooking something

At least one case is still broken:

  • Disable cell drag and drop
  • Try selecting and copying text from rendered markdown
  • 馃悰 The entire cell is pasted instead of just the text

Will open another issue for that

Fixes #201178

Fixes copying text from the chat window when a notebook editor is active
@mjbvz mjbvz requested a review from rebornix January 8, 2024 19:16
@mjbvz mjbvz self-assigned this Jan 8, 2024
@mjbvz mjbvz enabled auto-merge (squash) January 8, 2024 19:16
@VSCodeTriageBot VSCodeTriageBot added this to the December / January 2024 milestone Jan 8, 2024
@rebornix
Copy link
Member

rebornix commented Jan 8, 2024

@mjbvz thanks! I'll play around with it and validate a few more scenarios (e.g., output copy)

Copy link
Member

@rebornix rebornix left a comment

Choose a reason for hiding this comment

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

Working great, thank you!

@mjbvz mjbvz merged commit 7452aaa into main Jan 8, 2024
7 checks passed
@mjbvz mjbvz deleted the condemned-swift branch January 8, 2024 22:31
@microsoft microsoft locked and limited conversation to collaborators Jun 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Copy and Paste broken from co-pilot chat (or other extension sidebar)
3 participants