Skip to content

Conversation

@msujew
Copy link
Member

@msujew msujew commented Dec 10, 2023

What it does

Fixes #13114

The idea for this fix is fairly straighforward: During the rendering process, simply ignore all tree nodes that don't contribute a separate indentation to the navigator. In the compressed tree, only the head node of the compression chain actually contributes an indentation marker, so we need to check that in the new shouldRenderIndent method.

How to test

  1. Create a workspace similar to what's outlined in File Explorer displays wrong indent guide with compact folders #13114
  2. Assert that the navigator indent highlight is being correctly calculated

Review checklist

Reminder for reviewers

@msujew msujew added tree issues related to the tree (ex: tree widget) ui/ux issues related to user interface / user experience labels Dec 10, 2023
Copy link
Contributor

@martin-fleck-at martin-fleck-at left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change looks good to me and works well, thank you very much @msujew! I just have a very nit-picky issue in one of the docs.

Copy link
Contributor

@martin-fleck-at martin-fleck-at left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@msujew msujew merged commit 74a91ba into master Dec 19, 2023
@msujew msujew deleted the msujew/fix-indent-highlighting branch December 19, 2023 14:36
@github-actions github-actions bot added this to the 1.45.0 milestone Dec 19, 2023
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

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

File Explorer displays wrong indent guide with compact folders

3 participants