Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

Navigating callstack conflicts with search result focussing #6747

Closed
digitarald opened this issue Aug 3, 2018 · 11 comments
Closed

Navigating callstack conflicts with search result focussing #6747

digitarald opened this issue Aug 3, 2018 · 11 comments
Labels
🐛 bug: P1 👷‍♀️ in progress 👋 quality Currently a UI quality priority for the debugger 👋 quality-p1 Should be prioritized when working on quality issues

Comments

@digitarald
Copy link
Contributor

STR:

25% speed:

screenflow

@janodvarko
Copy link
Member

I can nicely reproduce this issue.

Note that the issue happens only when the user switches from WASM file to JS file. I.e. instead of navigating to the (clicked) frame location in the JS file the current search location is selected. When the users switches between to JS frames it works well.

Honza

@janodvarko janodvarko mentioned this issue Oct 10, 2018
25 tasks
@tanhengyeow
Copy link
Contributor

Is this a good issue for newbies to contribute? :)

If so, any tips on where to dig into?

@darkwing
Copy link
Contributor

This could be a bit tough; you may want to look at the "help wanted" and "good first issue" labels 👍

@navgurukul-shivani18
Copy link

navgurukul-shivani18 commented Oct 25, 2018

I tried but not getting how to lead to it and, couldn't find a way to solve it. Can someone help me please?

@AnshulMalik
Copy link
Contributor

Don't be disappointed @navgurukul-shivani18. This issue is a bit tough to start with. You might want to take on something not so tough.

@navgurukul-shivani18
Copy link

@AnshulMalik Can you please help me finding any good bug to work on? Please!

@darkwing darkwing mentioned this issue Jan 7, 2019
25 tasks
@YisraelV
Copy link

/claim

Hope it's not too hard. I'll try my luck!

@claim
Copy link

claim bot commented Jan 19, 2019

Thanks for claiming the issue! 👋

Here are some links for getting setup, contributing, and developing. We're always happy to answer questions in slack! If you become busy, feel free to /unclaim it.

🦊 Debugger team!

@YisraelV
Copy link

Copying from slack:

currently if there is some text in the search box, and user navigates between files, the search results are updated and the document is scrolled to the first result.

This issue is about when the user navigates using the stack-frames panel. The expected behavior is scrolling to the executed line, but the actual behavior is scrolling to the first search result.

In my opinion this is a more general problem: when the user navigates to a file it should always start at the first line, regardless if it's with quick-open, clicking on tab or selecting a stack-frame. The user probably just wanted to see the file and there is no reason to scroll to the first result.

I checked the behavior of two other code editors:

  1. in vscode when navigating to a file the search results are updated, but the scroll-to-first-result is not triggered.
  2. Chrome devtools only shows a message "n results" (e.g. "5 results")" but without scrolling and without showing the current result message (e.g. 2 out of 4) only when the user retriggers the search (by pressing enter inside the search bar) the first result is selected and scroll to.

I find Chrome's to be the best user experience. Please tell me what you think, and if others agree with me I will try to implement it in the code.

Thanks for your help!

@jasonLaster
Copy link
Contributor

I agree @YisraelV. Chrome's approach is nice

@darkwing darkwing added the 👋 quality Currently a UI quality priority for the debugger label Feb 28, 2019
@darkwing darkwing added the 👋 quality-p1 Should be prioritized when working on quality issues label Apr 16, 2019
@darkwing
Copy link
Contributor

Just landed fix in MC.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🐛 bug: P1 👷‍♀️ in progress 👋 quality Currently a UI quality priority for the debugger 👋 quality-p1 Should be prioritized when working on quality issues
Projects
None yet
Development

No branches or pull requests

8 participants