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

Explorer: Support compact folder rendering #41627

Closed
gulshan opened this issue Jan 15, 2018 · 39 comments
Closed

Explorer: Support compact folder rendering #41627

gulshan opened this issue Jan 15, 2018 · 39 comments
Assignees
Labels
feature-request Request for new features or functionality file-explorer Explorer widget issues on-release-notes Issue/pull request mentioned in release notes on-testplan tree-widget Tree widget issues
Milestone

Comments

@gulshan
Copy link

gulshan commented Jan 15, 2018

If a directory has a single directory as a child, please provide an option for showing them merged together in the file tree. So, instead of showing this-

+ com
  + domain
    + app
       File1
       File2

the file tree will look like-

+ com/domain/app
   File1
   File2
@isidorn isidorn added the *duplicate Issue identified as a duplicate of another issue(s) label Jan 15, 2018
@vscodebot
Copy link

vscodebot bot commented Jan 15, 2018

Thanks for creating this issue! We figured it's covering the same as another one we already have. Thus, we closed this one as a duplicate. You can search for existing issues here. See also our issue reporting guidelines.

Happy Coding!

@vscodebot vscodebot bot closed this as completed Jan 15, 2018
@gulshan
Copy link
Author

gulshan commented Jan 17, 2018

@isidorn Please mention the other issue with same request, so that I can at least put my vote there.

@isidorn
Copy link
Contributor

isidorn commented Jan 17, 2018

@gulshan please use our issue search. I would do the same, use the files-explorer tag to narrow down the search. Thanks

@gulshan
Copy link
Author

gulshan commented Jan 17, 2018

@isidorn Actually I do have searched before posting this issue, after closure of this issue as duplicate and again a while ago using the label you mentioned. And yet unable to find any other issue requesting same feature. The closest thing I got is #6328 requesting "file nesting" which is a different feature.

@isidorn
Copy link
Contributor

isidorn commented Jan 17, 2018

@gulshan you are correct, I made a mistake of thinking this is file nesting
Reopening.

@isidorn isidorn reopened this Jan 17, 2018
@isidorn isidorn added feature-request Request for new features or functionality file-explorer Explorer widget issues and removed *duplicate Issue identified as a duplicate of another issue(s) labels Jan 17, 2018
@isidorn isidorn removed their assignment Jan 17, 2018
@isidorn isidorn added this to the Backlog milestone Jan 17, 2018
@gulshan
Copy link
Author

gulshan commented Jan 23, 2018

The Gitlens extension does this in their tree.

@firelizzard18
Copy link

This would be absolutely awesome. I've always loved how github handles this when viewing a repo. It's a significant reduction of UI/UX noise.

@Deathhush
Copy link

This feature is crucial for Java developers and as mentioned in #39252 . Most of the editors/IDEs for serious Java development, like Atom, IntelliJ, Eclipse, do this. And even visual studio online's own treeview for displaying code repository does this.

Given we are now enhancing the Java experience in vscode by adding various extensions and the recent official Java bundle, this feature will be essential to move this effort forward.

This is NOT a dup as the file nesting feature, which is a totally different thing. @bpasero

@akaroml
Copy link
Member

akaroml commented Apr 12, 2018

I really need to echo this one. For Java projects, the deep folder structure is really annoying and inefficient if they are not organized in a better way. VS Code should support this.

@hkiang01
Copy link

Oracle's own documentation regarding Naming a Package necessitates fully qualified package names to prevent name collisions. This creates a need for "deep" packages, or packages with files in deep directory structures. Collapsing these empty directories greatly serves Java developers in being able to more easily navigate their Explorer.

@stalkerg
Copy link

@bpasero this feature keep explorer as file hierarchy explorer, nothing change but it 200% needed.

@gulshan
Copy link
Author

gulshan commented Nov 13, 2018

Ok. This is a planned feature for November iteration!

@isidorn isidorn self-assigned this Nov 13, 2018
@isidorn
Copy link
Contributor

isidorn commented Nov 13, 2018

Just as an exploration for now. But we plan to address this feature in the near future.

@wyntau
Copy link

wyntau commented Nov 16, 2018

If multi level directories merged together to show, then we may should consider how to right click mouse to create new file or sub directory in middle level directory

@charrondev
Copy link

It looks like the September release shipped a new tree view that supports compressing items from #77876 CompressableObjectTree

I was trying to track down the actual PR for that implemented this module in the Source control management view, and found this https://github.com/disksing/vscode/pull/1419. That seems to be a good enough reference point. I'm a little confused about the contribution workflow though.

@joaomoreno were you planning on tackling it? If it's not in the next iteration plan, I'd like to try working on it.

@joaomoreno
Copy link
Member

This work already started: https://github.com/microsoft/vscode/tree/joao/explorer-compressed-tree

It's still quite buggy and will polish it out probably next month.

@joaomoreno joaomoreno assigned joaomoreno and unassigned isidorn Nov 6, 2019
@joaomoreno joaomoreno added the tree-widget Tree widget issues label Nov 6, 2019
@joaomoreno joaomoreno modified the milestones: On Deck, November 2019 Nov 6, 2019
@joaomoreno
Copy link
Member

This has landed in master, behind a explorer.compressSingleChildFolders setting. It's coming out soon on Insiders so please give it a try and let us know if you hit any issues:

Peek 2019-11-06 16-06

@ExE-Boss
Copy link
Contributor

ExE-Boss commented Nov 6, 2019

Now that this has been implemented, does that mean that #6328 will be next?

@joaomoreno
Copy link
Member

@ExE-Boss Unfortunately it doesn't mean that.

@AntSworD
Copy link

AntSworD commented Nov 7, 2019

GOOD! Waiting for the release date

@fore5fire
Copy link

Just noticed this is now working in VS Code Insiders! Thank you!!

@joaomoreno joaomoreno changed the title Option for merging single child directories with parent in the file tree Explorer: Support compact folder rendering Dec 2, 2019
@joaomoreno joaomoreno added the on-release-notes Issue/pull request mentioned in release notes label Dec 9, 2019
@ghost
Copy link

ghost commented Dec 21, 2019

I hate this system

@isidorn
Copy link
Contributor

isidorn commented Dec 23, 2019

@Md-Tahazzot please use the following setting "explorer.compactFolders": false

@Tylerian
Copy link

@ExE-Boss Unfortunately it doesn't mean that.

Why is the Team so reticent on implementing that feature? It's very well waited by the community and just a few dozen lines of code, heck, it even has been pull requested multiple times...

@the-kenny
Copy link

@Tylerian this issue isn't the place to discuss the implementation of another issue...

@bradisbell
Copy link

Please don't make "clever" UI hacks like this default in the future. It's seemingly impossible to create a new folder on a new project, and then get to the root level folder to edit files. Clicking on the root of the project doesn't fix anything, even though it's underlined.

I'm all for a customizable IDE, but the amount of time wasted trying to figure out what config file to undo things like this is really frustrating. It should not be a default.

@vscodebot vscodebot bot locked and limited conversation to collaborators Dec 29, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature-request Request for new features or functionality file-explorer Explorer widget issues on-release-notes Issue/pull request mentioned in release notes on-testplan tree-widget Tree widget issues
Projects
None yet
Development

No branches or pull requests