-
Notifications
You must be signed in to change notification settings - Fork 30k
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
Lock on click #66169
Lock on click #66169
Conversation
@sandy081 Do you want to review this or should I? |
@isidorn Will do. |
@@ -612,9 +601,7 @@ export class OutputService extends Disposable implements IOutputService, ITextMo | |||
if (!preserveFocus) { | |||
this._outputPanel.focus(); | |||
} | |||
}) | |||
// Activate smart scroll when switching back to the output panel | |||
.then(() => this.setPrimaryCursorToLastLine()); |
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 reason we probably called this function was to resume scrolling. Now we shouldn't call it anymore because scrolling depends only on the lock action state, and the lock state should persist between channel changes.
I added some comments in the code review to clarify my intention. Please let me know if it's preferred not to do it. @sandy081 I now squashed my two commit into 1 since the second one only fixed something I forgot. |
Clicking inside the output panel should set the lock on just as if the lock icon was clicked. Moving to the last line (with ctrl+end or click) should unset the lock.
@YisraelV I liked toggling the lock button while clicking in the panel. LGTM |
#63525