eclipse-theia / theia

Eclipse Theia is a cloud & desktop IDE framework implemented in TypeScript.
http://theia-ide.org
Eclipse Public License 2.0
20.05k stars 2.5k forks source link

Automatic scrolling to highlighted item in explorer #14097

Open kawaragi-momoka opened 2 months ago

kawaragi-momoka commented 2 months ago

Bug Description:

When I select an item which is towards the top of the explorer, and then scroll down, eventually after a few seconds Theia will automatically scroll up to the selected item.

Steps to Reproduce:

  1. Open project containing enough items to make the explorer scrollable
  2. Select an item towards the top of the explorer
  3. Scroll down

Additional Information

Changing settings such as "editor.stickyScroll.scrollWithEditor" or "explorer.autoReveal" and setting them to false does not affect the behaviour. Nor does setting "explorer.autoReveal" to "focusNoScroll" (in fact this setting does not seem to be supported).

msujew commented 2 months ago

I believe this is a duplicate of https://github.com/eclipse-theia/theia/issues/13461? cc @tsmaeder should we reopen the other issue?

tsmaeder commented 2 months ago

I don't think it's the same issue: that other one had to do with updating the tree (e.g. expanding a node), whereas this one does not.

tsmaeder commented 2 months ago

if you wait 5 seconds after selecting an item, the scroll-back does not happen.

kawaragi-momoka commented 2 months ago

@tsmaeder is there no way to get around this other than waiting for 5 seconds?

tsmaeder commented 2 months ago

@kawaragi-momoka I don't know, I just wanted to record the behavior as a pointer for whoever eventually addresses the issue.