Skip to content
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

ui/ux: tree node styling issue in the references view #12796

Open
vladarama opened this issue Aug 2, 2023 · 3 comments
Open

ui/ux: tree node styling issue in the references view #12796

vladarama opened this issue Aug 2, 2023 · 3 comments
Labels
tree issues related to the tree (ex: tree widget) ui/ux issues related to user interface / user experience vscode issues related to VSCode compatibility

Comments

@vladarama
Copy link
Contributor

Bug Description:

In the References view, the styling of the tree nodes flickers when changing node. The flickering seems to be caused by the focused styling not being applied correctly.

Bug Demo:
references styling bug

Correct Styling Demo (Explorer View):
correct reference styling

Steps to Reproduce:

  1. Start Theia application
  2. Select a random text in your editor -> Right-Click -> Find All References (Alt+Shift+F12)
  3. Go to the References view
  4. Click on different results
  5. Notice the incorrect styling of the nodes

Additional Information

  • Operating System: Windows 10
  • Theia Version: 1.40
@vince-fugnitto vince-fugnitto added tree issues related to the tree (ex: tree widget) vscode issues related to VSCode compatibility ui/ux issues related to user interface / user experience labels Aug 2, 2023
@shynxe
Copy link

shynxe commented Aug 3, 2023

I'm trying to look into this. As I understand, this References view comes with theia's vscode-builtin-extensions. Since the vscode's extensions source code can not be modified, then it's Theia's API that should be looked into, correct?

@vince-fugnitto
Copy link
Member

...then it's Theia's API that should be looked into, correct?

That's correct, there is likely something incorrect with how we handle selection in trees contributed by the plugin-system.

@shynxe
Copy link

shynxe commented Aug 3, 2023

Okay, after looking into this for a bit, I discovered this: when a LineNode is selected, the line is focused in the editor and it is due to this behavior that the TreeViewWidget loses focus, and therefore loses its styling. Clicking anywhere on the TreeViewWidget will refocus it and reapply the styling, resulting in the flickering mentioned in the issue.

chrome-capture-2023-7-3

In VS Code's implementation of this LineNode selection, it seems that the editor is not focused when the line is brought into view. Should I look into this behavior and make it so that the TreeViewWidget maintains focus?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tree issues related to the tree (ex: tree widget) ui/ux issues related to user interface / user experience vscode issues related to VSCode compatibility
Projects
None yet
Development

No branches or pull requests

3 participants