atom / tree-view

🌳 Explore and open project files in Atom
MIT License
561 stars 364 forks source link

Fix subfolder git detection #1367

Closed utkarshgupta137 closed 1 year ago

utkarshgupta137 commented 3 years ago

Identify the Bug

Fixes https://github.com/atom/tree-view/issues/1366.

Description of the Change

By using atom.project.repositoryForPath function instead of matching the path with added directories, subfolders will get identified. Made necessary changes to referenced places to handle the async nature of the atom.project.repositoryForPath.

Alternate Designs

None.

Possible Drawbacks

Since atom.project.repositoryForPath is an async function, there may be a little lag when loading files with existing changes.

Verification Process

TODO

Release Notes

utkarshgupta137 commented 3 years ago

TODO: Add tests.