-
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
GH-7521: Enabled Select All
in the Output
#7523
Conversation
`dynamic` -> `dymanic` Signed-off-by: Akos Kitta <[email protected]>
I am going to drop 7d97ebe once the review is over. |
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 verified the changes on both the browser
and electron
targets under different use-case conditions and the select all in the output-view works very well compared to master 👍
if (this.outputChannelManager.selectedChannel) { | ||
const element = document.getElementById(OutputWidget.IDs.CONTENTS); | ||
if (element) { | ||
const selectElementContent = (what: HTMLElement) => { |
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.
[minor] perhaps we can find a better name instead of what
.
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.
What do you suggest?
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.
What do you suggest?
I'm not sure, either content
or even htmlElement
?
Closes #7521. Signed-off-by: Akos Kitta <[email protected]>
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.
The issue is about "Select All" in the output view, works fine.
Question:
Could it be a side effect if I "Select All" from the Problem view. It looks like it selects all the "Problem" view content as well as selecting all line ranges in the open editor
@lmcbout it is not a side-effect of this pull-request since the bug currently occurs on |
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.
Thanks,
Works well for the output view
Thank you for the review, @vince-fugnitto, and @lmcbout 👍 |
@vince-fugnitto is there an issue where the "Select all" for the Problem" view is tracked |
No, but there is a conversation here: #7525 (comment) |
What it does
It enables the
Select All
functionality in theOutput
widget. Enabled only if theOutput
widget is the active widget in the shell. It should work with Ctrl/Cmd+A keybindings by default. Closes #7521.How to test
Output
widget. You can use theAPI Sample: Log to Output
command.Output
widget is visible but not activeSelect All
via the keyboard whilst the editor is active,Select All
via the keyboard whilst the SIW widget is active andinput
has the focus.Review checklist
Reminder for reviewers