CallStackView attempts to move the active frame to the top#88074
Merged
isidorn merged 1 commit intomicrosoft:masterfrom Jan 9, 2020
Merged
CallStackView attempts to move the active frame to the top#88074isidorn merged 1 commit intomicrosoft:masterfrom
isidorn merged 1 commit intomicrosoft:masterfrom
Conversation
Collaborator
|
Thanks for submiting this PR. However it might be a bit overly complex to me and I think we can simplify this. |
49bd816 to
02b5905
Compare
…le of the visible area
02b5905 to
c9aeb8a
Compare
Contributor
Author
|
@isidorn - Did the change you recommended and it's not a bad idea at all. I still only move the |
Contributor
Author
Collaborator
|
Looks good, thanks for this PR. Merging in ☀️ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR fixes #88073
This is an attempt to fix the above issue.
If the element we're selecting is a StackFrame and it's not on the screen, I attempt to put the associated Thread at the very top of the list view. I don't force it as if the element is already on the screen, it'll scroll if up forcefully, which is not a good UX imo.
I'd appreciate any comments, there is a lot going in the code to render a stack trace, this seemed like an easy and non-invasive way to make this a little more intuitive.