-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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 'copyFormatting' global setting #5263
Conversation
Question: Should this actually close #4191?
For now, I've assumed yes, but still wanted to point it out :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Blocking until the spec is reviewed and committed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm approving even though I haven't signed off on the spec yet. This matches the spec we discussed, but I'll let Dustin make sure the actual spec is signed off
d2fb0d0
to
9dd06ea
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it worth plumbing this all the way down into the control settings when it would suffice to check the GlobalAppSettings at the TerminalPage layer? This is what I was talking about in our meeting. People aren't asking for us to turn off formatted copy because they don't like its performance characteristics, they're asking for us to turn it off because they don't want it on their clipboards.
My thought is this is something VS might also want to be able to disable in the WPF control as well. |
If that’s the case we didn’t plumb it down deep enough because this check happens in our XAML control :) |
Generally though it’d be more flexible if we gave them every format and let them choose |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is way simpler, even if it wastes some CPU cycles generating formatted information that gets deleted. Are we okay with simple here? I don't want to "win" because I was the loudest voice 😄
You won me over with this comment up here haha |
Hello @carlos-zamora! Because this pull request has the p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (
|
come on. The spec didn’t merge. |
This reverts commit c55d9cd.
You're approval threw me off. Sorry! |
## Summary of the Pull Request Implements `copyFormatting` as a global setting. When enabled, formatting such as font and foreground/background colors are copied to the clipboard on _all_ copy operations. Also updates the schema and docs. ## References #5212 - Spec for Formatted Copying #4191 - Setting to enable/disable formatted copy #5263 - PR prematurely merged without approval of #5212 This feature will also have an impact on these yet-to-be-implemented features: - #5262 - copyFormatting Keybinding Arg for Copy - #1553 - Pointer Bindings - #4191 - add array support for `copyFormatting` ## Detailed Description of the Pull Request We already check if the hstring passed into the clipboard is empty before setting it. So the majority of the changes are actually just adding the global setting in. ## Validation Steps Performed | `copyFormatting` | Mouse Copy | Keyboard Copy | |--|--|--| | not set (`false`) | ✔ | ✔ | | `true` | ✔ | ✔ | | `false` | ✔ | ✔ |
Summary of the Pull Request
Implements
copyFormatting
as a global setting. When enabled, formatting such as font and foreground/background colors are copied to the clipboard on all copy operations.Also updates the schema and docs.
References
#5212 - Spec for Formatted Copying
#4191 - Setting to enable/disable formatted copy
This feature will also have an impact on these yet-to-be-implemented features:
PR Checklist
Detailed Description of the Pull Request / Additional comments
We already check if the hstring passed into the clipboard is empty before setting it. So the majority of the changes are actually just adding the global setting in.
Validation Steps Performed
copyFormatting
false
)true
false