-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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 implementation copy text on selection for terminal #6536
Add implementation copy text on selection for terminal #6536
Conversation
packages/terminal/src/browser/terminal-copy-on-selection-handler.ts
Outdated
Show resolved
Hide resolved
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'd merge this PR with further improvement of ClipboardService
in a separate PR.
ok, please fix at least naming and unnecessary creation of listeners for each terminal, one has to be enough Also add to #6209 that |
Some not related commits have been added to the PR, so dismissing my approval
@AndrienkoAleksandr looks like there are several non-related commits are added to the PR. Could you check it, please? |
@akosyakov done |
… to enable/disable feature. Signed-off-by: Oleksandr Andriienko <oandriie@redhat.com>
281b46a
to
b69f53a
Compare
Sorry, it was wrong merge, I fixed. |
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.
code-wise looks good, thank you!
Please rely for testing on @azatsarynnyy review
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've tested it in Chrome and FF. Works well 👍
I'm ok to merge it with further improvement of ClipboardService, see #6209
What it does
Add implementation copy text on selection for terminal and add option to enable/disable feature to align with VSCode. Works with Google Chrome, Firefox.
With Safary seems an issue: https://bugs.webkit.org/show_bug.cgi?id=156529
Referenced issue:
eclipse-che/che#15106
How to test
terminal.integrated.copyOnSelection
, set value true to enable feature.Review checklist
Reminder for reviewers
Signed-off-by: Oleksandr Andriienko oandriie@redhat.com