You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An UX discussion happened and the following solution was suggested in two steps
Step 1
Provide an extension point to contribute activity bar group (viewlet) and allow extensions to group views.
If there are multiple contributions with the same group id, last one wins
Advantages:
Extension can group the views they would like to have under single viewlet. This will work well with azure views.
Disadvantages:
Each Extension can create its own viewlet and there could be too many icons in the activity bar. This is mitigated by our activity bar that can scale.
User has no control to group or ungroup views. If two extensions contribute git related views under two different viewlets, then user cannot group them into one. If an extension contribute azure and docker views under single viewlet and then it is not possible for user to make docker as a separate viewlet.
Step 2
Ability to move views across groups . This is a big discussion scopes to complete VS Code.
Moving across groups / panels etc.
Follow up tasks:
Start with Step 1: Create UI mock ups for contributing viewlets and get feedback from team and community
I would defer this to next milestone due to me being not available completely in this milestone.
Reacted by Leo Hanisch, Eric Amodio, Kolya Ay, rsepierre and Yukai Huang
I'd like to see the ability to contribute views/allow users to "dock" views on the opposite side of the activity bar and in the bottom (terminal/problems/etc) bar.
I know the vs code team is reticent about allowing custom UIs so the editor can stay "light and simple" but with custom TreeView and now the new WebView coming as well, that is what will eventually happen.
Ascii Example
----------------------------------------------------
| A | | | |
| C | | | |
| T | | | |
| V | | Code | Code |
| I | File Tree | Editor | Outline |
| T | | | |
| Y | | | |
| | |----------------------------------|
| B | | Problems / Terminal / [Coverage] |
| A | | |
| R | | [ Custom Coverage View ] |
| | | |
----------------------------------------------------
in this example, I could have an extension that contributes some type of "code outline" TreeView on the right, and another extension that contributes a WebView with coverage reports in the bottom bar.
Now I know some core contributors are dead set against this type of thing, but this is where the UI is heading with the introduction of custom views, now you're talking about custom view positioning...
As far as I see it, the vscode team can follow one of two paths:
Custom Views ▶️ Custom View Group ▶️ Custom Activities ▶️ 🕥 API stabilizes ▶️ Extension Authors implement custom views ▶️ users love them but are frustrated because they have to jam all of their tools into one part of the screen ▶️ 📢 users complain, alot▶️ vscode team eventually relents ▶️ a bunch of code goes into the 🗑 and is rewritten ▶️ 🕥 API stabilizes ▶️ community is happy
OR
Custom Views ▶️ new view contribution/docking API ▶️ 🕥 API stabilizes ▶️ community is happy
Reacted by Robin Munn, Danny Tuppeny, Gulshan, Alexander and Yukai Huang
Pushed a change to provide out of the box Test view container. All extensions contributing test views can contribute to this container using the id test.
You can also consider removing Flutter from your view name as you are putting your view into Flutter container. Then it looks like Flutter: Outline which is pretty good.
Good idea! I think ultimately this might just become an "outline", since we'll have a standard non-flutter outline, but for now I think this works fine 👍
If I call reveal, the sidebar switches to my view. This could be annoying to the user - I want to keep the item in the tree that corresponds to where the cursor is selected, but I don't want to force the tree to be visible it it's not already. Is there a way I can set the selection (so that if they switch to this bar, it's selected) without forcing the view to become visible?
(This is kinda tree-reveal-related rather than this one, but...) if I call reveal(null) it doesn't remove the current selection. So if the user moves the cursor to a position that is not represented by a node (eg. the space between two classes) the previous node remains selected. Any way to remove a selection?
Danny Tuppeny (@DanTup) Are you also working on a code outline extension? Maybe we could get a standard view container for our extensions like there is one for tests? (I am the author of Code Outline.)
Patryk Zawadzki (@patrys) I'm not working on an Outline extension, I author the Dart/Flutter extensions. I'm currently working on a special type of outline for Flutter (which will need to be rendered by us, it's very specific), though we do have a standard outline in our backlog.
For the Flutter one, I think a Flutter icon on the side bar makes sense (there are other tools we may add to it in future), but the standard outline may make sense to share a view. However, it raises some questions:
If two extensions contribute view containers with the same ID and different titles, which gets displayed?
If an extension provides its own outline and an "Outline extension" also provides an outline, is there user going to end up with two outlines?
Activity
sandy081 commentedon Mar 19, 2018
An UX discussion happened and the following solution was suggested in two steps
Step 1
Advantages:
Extension can group the views they would like to have under single viewlet. This will work well with azure views.
Disadvantages:
Each Extension can create its own viewlet and there could be too many icons in the activity bar. This is mitigated by our activity bar that can scale.
User has no control to group or ungroup views. If two extensions contribute
gitrelated views under two different viewlets, then user cannot group them into one. If an extension contributeazureanddockerviews under single viewlet and then it is not possible for user to makedockeras a separate viewlet.Step 2
Ability to move views across
groups. This is a big discussion scopes to complete VS Code.Follow up tasks:
I would defer this to next milestone due to me being not available completely in this milestone.
eamodio commentedon Mar 19, 2018
Sandeep Somavarapu (@sandy081) how would the (default) order of views contributed into an activity be defined? Would it just be order of registration?
eamodio commentedon Mar 19, 2018
I would love to see the possible future ability of putting a WebView into an activity as this UI/UX/API evolves as well.
sandy081 commentedon Mar 19, 2018
Eric Amodio (@eamodio) Yes, it would be based on the order of registration.
rozzzly commentedon Mar 24, 2018
I'd like to see the ability to contribute views/allow users to "dock" views on the opposite side of the activity bar and in the bottom (terminal/problems/etc) bar.
I know the vs code team is reticent about allowing custom UIs so the editor can stay "light and simple" but with custom TreeView and now the new WebView coming as well, that is what will eventually happen.
Ascii Example
in this example, I could have an extension that contributes some type of "code outline" TreeView on the right, and another extension that contributes a WebView with coverage reports in the bottom bar.
Now I know some core contributors are dead set against this type of thing, but this is where the UI is heading with the introduction of custom views, now you're talking about custom view positioning...
As far as I see it, the vscode team can follow one of two paths:
Custom Views▶️ Custom View Group ▶️ Custom Activities ▶️ 🕥 API stabilizes ▶️ Extension Authors implement custom views ▶️ users love them but are frustrated because they have to jam all of their tools into one part of the screen ▶️ 📢 users complain, alot ▶️ vscode team eventually relents ▶️ a bunch of code goes into the 🗑 and is rewritten ▶️ 🕥 API stabilizes ▶️ community is happy
OR
Custom Views▶️ new view contribution/docking API ▶️ 🕥 API stabilizes ▶️ community is happy
46 remaining items
sandy081 commentedon Apr 25, 2018
How about sharing a latest build to you instead of releasing it? Does it works?
eamodio commentedon Apr 25, 2018
Sure, works for me, thanks!
DanTup commentedon Apr 26, 2018
Neat! :)
Sandeep Somavarapu (@sandy081)
Good idea! I think ultimately this might just become an "outline", since we'll have a standard non-flutter outline, but for now I think this works fine 👍
#43645 Lift off proposed api flag
sandy081 commentedon Apr 26, 2018
Removed the proposed api flag and this will be available in next stable release.
DanTup commentedon Apr 26, 2018
Sandeep Somavarapu (@sandy081) Two minor things I noticed while working on my outline:
If I call reveal, the sidebar switches to my view. This could be annoying to the user - I want to keep the item in the tree that corresponds to where the cursor is selected, but I don't want to force the tree to be visible it it's not already. Is there a way I can set the selection (so that if they switch to this bar, it's selected) without forcing the view to become visible?
(This is kinda tree-reveal-related rather than this one, but...) if I call reveal(null) it doesn't remove the current selection. So if the user moves the cursor to a position that is not represented by a node (eg. the space between two classes) the previous node remains selected. Any way to remove a selection?
sandy081 commentedon Apr 26, 2018
Here is the request for 1) - #48198
Please file a separate request for 2).
Thanks.
DanTup commentedon Apr 26, 2018
Thanks; opened #48754 :)
patrys commentedon Apr 26, 2018
Danny Tuppeny (@DanTup) Are you also working on a code outline extension? Maybe we could get a standard view container for our extensions like there is one for tests? (I am the author of Code Outline.)
DanTup commentedon Apr 26, 2018
Patryk Zawadzki (@patrys) I'm not working on an Outline extension, I author the Dart/Flutter extensions. I'm currently working on a special type of outline for Flutter (which will need to be rendered by us, it's very specific), though we do have a standard outline in our backlog.
For the Flutter one, I think a Flutter icon on the side bar makes sense (there are other tools we may add to it in future), but the standard outline may make sense to share a view. However, it raises some questions:
If two extensions contribute view containers with the same ID and different titles, which gets displayed?
If an extension provides its own outline and an "Outline extension" also provides an outline, is there user going to end up with two outlines?
sandy081 commentedon Apr 26, 2018
Edit: The first one wins
Yes
#43645 Do not override view containers
sandy081 commentedon Apr 27, 2018
Closing this issue.. Please file separate issues for new feature requests or bugs