{"action":"closed","issue":{"url":"https://api.github.com/repos/Microsoft/vscode/issues/62603","repository_url":"https://api.github.com/repos/Microsoft/vscode","labels_url":"https://api.github.com/repos/Microsoft/vscode/issues/62603/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/vscode/issues/62603/comments","events_url":"https://api.github.com/repos/Microsoft/vscode/issues/62603/events","html_url":"https://github.com/Microsoft/vscode/issues/62603","id":377451288,"node_id":"MDU6SXNzdWUzNzc0NTEyODg=","number":62603,"title":"Add option to flatten directory trees that contains only a subfolder","user":{"login":"V-ed","id":16652915,"node_id":"MDQ6VXNlcjE2NjUyOTE1","avatar_url":"https://avatars3.githubusercontent.com/u/16652915?v=4","gravatar_id":"","url":"https://api.github.com/users/V-ed","html_url":"https://github.com/V-ed","followers_url":"https://api.github.com/users/V-ed/followers","following_url":"https://api.github.com/users/V-ed/following{/other_user}","gists_url":"https://api.github.com/users/V-ed/gists{/gist_id}","starred_url":"https://api.github.com/users/V-ed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/V-ed/subscriptions","organizations_url":"https://api.github.com/users/V-ed/orgs","repos_url":"https://api.github.com/users/V-ed/repos","events_url":"https://api.github.com/users/V-ed/events{/privacy}","received_events_url":"https://api.github.com/users/V-ed/received_events","type":"User","site_admin":false},"labels":[{"id":366106217,"node_id":"MDU6TGFiZWwzNjYxMDYyMTc=","url":"https://api.github.com/repos/Microsoft/vscode/labels/*duplicate","name":"*duplicate","color":"E2A1C2","default":false}],"state":"closed","locked":false,"assignee":{"login":"isidorn","id":1926584,"node_id":"MDQ6VXNlcjE5MjY1ODQ=","avatar_url":"https://avatars2.githubusercontent.com/u/1926584?v=4","gravatar_id":"","url":"https://api.github.com/users/isidorn","html_url":"https://github.com/isidorn","followers_url":"https://api.github.com/users/isidorn/followers","following_url":"https://api.github.com/users/isidorn/following{/other_user}","gists_url":"https://api.github.com/users/isidorn/gists{/gist_id}","starred_url":"https://api.github.com/users/isidorn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/isidorn/subscriptions","organizations_url":"https://api.github.com/users/isidorn/orgs","repos_url":"https://api.github.com/users/isidorn/repos","events_url":"https://api.github.com/users/isidorn/events{/privacy}","received_events_url":"https://api.github.com/users/isidorn/received_events","type":"User","site_admin":false},"assignees":[{"login":"isidorn","id":1926584,"node_id":"MDQ6VXNlcjE5MjY1ODQ=","avatar_url":"https://avatars2.githubusercontent.com/u/1926584?v=4","gravatar_id":"","url":"https://api.github.com/users/isidorn","html_url":"https://github.com/isidorn","followers_url":"https://api.github.com/users/isidorn/followers","following_url":"https://api.github.com/users/isidorn/following{/other_user}","gists_url":"https://api.github.com/users/isidorn/gists{/gist_id}","starred_url":"https://api.github.com/users/isidorn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/isidorn/subscriptions","organizations_url":"https://api.github.com/users/isidorn/orgs","repos_url":"https://api.github.com/users/isidorn/repos","events_url":"https://api.github.com/users/isidorn/events{/privacy}","received_events_url":"https://api.github.com/users/isidorn/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2018-11-05T15:30:43Z","updated_at":"2018-11-06T08:33:12Z","closed_at":"2018-11-06T08:33:12Z","author_association":"CONTRIBUTOR","body":"**Issue type** : Feature Request\r\n\r\nI propose to add an option to flatten the directory tree when folders contains only a subfolder.\r\n\r\nTo give an example, GitHub does it like so :\r\n![image](https://user-images.githubusercontent.com/16652915/48006063-f73cfc80-e0e2-11e8-9535-5391a852592b.png)\r\n\r\nThis feature exists in IntelliJ IDEA too :\r\n![image](https://user-images.githubusercontent.com/16652915/48021311-3b8dc400-e106-11e8-93fd-3345d6c7f2f3.png)\r\n\r\nThis is not really what I personally find beautiful to look at and moves everything with alot of indentation, making long class names under low level folders harder to read :\r\n![image](https://user-images.githubusercontent.com/16652915/48007621-040f1f80-e0e6-11e8-93a9-a0de4c656d37.png)\r\n\r\nThis would preferably be under an option, probably disabled by default to not dramatically change how we are used to the tree layout.\r\n\r\n---\r\n\r\nOne thing to keep in mind if this feature gets to be worked on is the way right clicks would interact with \"shrunken down folders\" :\r\n\r\nIn IntelliJ IDEA, it acts like a right click on the most low level folder (in the picture of GitHub above, right clicking on _test/java/io/[...]_ would be like right clicking on the final **_vramework_** folder)\r\n- While logical, I sometimes find myself wanting to create a folder in one of the middle level folders, in the same example would in the **_vhoyon_** subfolder (think of when creating the Unit Tests for a new project, creating all the folders is more tedious when you don't have access to the middle level folders directly), and going the route of IntelliJ makes it harder for me for such use case\r\n\r\nTherefore, I propose to deal with \"shrunken down folders\" like IntelliJ does (right clicking means right clicking on the lowest level folder), but having _another_ option to select which folder to put the right click event onto :\r\n![image](https://user-images.githubusercontent.com/16652915/48007376-76cbcb00-e0e5-11e8-9fc6-2b47b368e8a1.png)\r\n, option which would bring up a dropdown of some sort to select which middle level folder would be selected.\r\n\r\nI'll be honest, I'm not sure which workflow would be the best in that case for selecting a middle level folder, but having an option similar to this would greatly be appreciated compared to IntelliJ IDEA."}}
{"actor":{"display_login":"vscodebot"}}