Fix handling of files of the same name in Web IDE tree nav
When the root and a sub directory have a file of the same name, formatting of the file in the sub dir when expanded is based on the file in the root.
Steps to reproduce
- Open and edit a file in the root of the project (e.g.
LICENSE
) - Open a directory that contains a file of the same name (e.g.
src/LICENSE
)
Example Project
I cloned https://github.com/junegunn/fzf which has the following structure:
project
- ..
- src/
- LICENSE
- ..
- LICENSE
- ..
What is the current bug behavior?
- The nested file of the same name is incorrectly indented
- The nested file of the same name is shown as modified
- The nested file of the same name cannot be opened
What is the expected correct behavior?
- The nested file should be shown with the correct indentation
- The nested file should not be shown as modified
- It should be possible to open the nested file
Relevant logs and/or screenshots
1. Edit file | 2. Open directory |
---|---|
Edited by James Ramsay (ex-GitLab)