Skip to content

Add a ClipboardService to the StandaloneDiffEditor#90846

Merged
alexdima merged 5 commits intomicrosoft:masterfrom
nrayburn-tech:master
Feb 19, 2020
Merged

Add a ClipboardService to the StandaloneDiffEditor#90846
alexdima merged 5 commits intomicrosoft:masterfrom
nrayburn-tech:master

Conversation

@nrayburn-tech
Copy link
Copy Markdown
Contributor

Adds a ClipboardService to the StandaloneDiffEditor, so that the tooltips for inline diffs can be used to copy the deleted lines. The implemented ClipboardService is almost identical to clipboardService.ts

Can be tested by creating a StandaloneDiffEditor with renderSideBySide: false. Then using the icons in the margin, you should be able to copy text from the modified model.
Should have the same interaction as when using the inline diff in vscode.

This PR is in relation to #1035, but should probably be left open similarly to #8226.

@alexdima alexdima added this to the February 2020 milestone Feb 19, 2020
@alexdima
Copy link
Copy Markdown
Member

Thank you!

@alexdima alexdima merged commit 49e9992 into microsoft:master Feb 19, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Apr 4, 2020
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.

3 participants