zowe / zowe-explorer-vscode

Visual Studio Code Extension for Zowe, which lets users interact with z/OS Data Sets, Unix System Services, and Jobs on a remote mainframe instance. Powered by Zowe SDKs.
Eclipse Public License 2.0
173 stars 92 forks source link

Scrolling in tree while a USS file is opening causes "snap" back to opened item #2486

Open traeok opened 1 year ago

traeok commented 1 year ago

Describe the bug

If you scroll in the USS tree while a USS file is being opened, sometimes the tree will "snap" the user's view back to the opened item. This might be more obvious because we are pulling USS files from the mainframe once they are clicked, and this could be an issue with tree views in general in VS Code.

To Reproduce

  1. Execute a search filter in the USS tree - specifically, try to filter down to a directory with a lot of files/folders (so there is a scroll bar).
  2. Click on a USS file to open it, and immediately after, start scrolling up the tree so that the file becomes out of view.
  3. Notice that VS Code will jump back to the opened USS file once it shows in the editor.

Expected behavior

The tree should not snap back to the location of the USS file, and the "visible region" of the tree should stay as-is.

Desktop (please complete the following information):

github-actions[bot] commented 1 year ago

Thank you for creating a bug report. We will investigate the bug and evaluate its impact on the product. If you haven't already, please ensure you have provided steps to reproduce the bug and as much context as possible.

traeok commented 3 weeks ago

This no longer occurs in v3. Not sure if this can be fixed in v2 but we can investigate this if demand is there.