Skip to content

Ability to contribute views containers #43645

Closed

Description

  • Ability to contribute views containers to the Activity bar like azure, outline etc.,
  • Contribute views to these activity groups

Activity

  1. added
    feature-request
    tree-views
    on Feb 14, 2018
  2. sandy081 commented on Mar 19, 2018

    @sandy081
    MemberAuthor

    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.

  3. eamodio commented on Mar 19, 2018

    @eamodio
    Contributor

    Sandeep Somavarapu (@sandy081) how would the (default) order of views contributed into an activity be defined? Would it just be order of registration?

  4. eamodio commented on Mar 19, 2018

    @eamodio
    Contributor

    I would love to see the possible future ability of putting a WebView into an activity as this UI/UX/API evolves as well.

  5. sandy081 commented on Mar 19, 2018

    @sandy081
    MemberAuthor

    how would the (default) order of views contributed into an activity be defined? Would it just be order of registration?

    Eric Amodio (@eamodio) Yes, it would be based on the order of registration.

  6. rozzzly commented on Mar 24, 2018

    @rozzzly

    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

  7. 46 remaining items

  8. sandy081 commented on Apr 25, 2018

    @sandy081
    MemberAuthor

    How about sharing a latest build to you instead of releasing it? Does it works?

  9. eamodio commented on Apr 25, 2018

    @eamodio
    Contributor

    Sure, works for me, thanks!

  10. DanTup commented on Apr 26, 2018

    @DanTup
    Contributor

    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.

    Neat! :)

    Sandeep Somavarapu (@sandy081)

    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 👍

  11. added a commit that references this issue on Apr 26, 2018
  12. sandy081 commented on Apr 26, 2018

    @sandy081
    MemberAuthor

    Removed the proposed api flag and this will be available in next stable release.

  13. DanTup commented on Apr 26, 2018

    @DanTup
    Contributor

    Sandeep Somavarapu (@sandy081) Two minor things I noticed while working on my outline:

    1. 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?

    2. (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?

  14. sandy081 commented on Apr 26, 2018

    @sandy081
    MemberAuthor

    Here is the request for 1) - #48198

    Please file a separate request for 2).

    Thanks.

  15. DanTup commented on Apr 26, 2018

    @DanTup
    Contributor

    Thanks; opened #48754 :)

  16. patrys commented on Apr 26, 2018

    @patrys

    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.)

  17. DanTup commented on Apr 26, 2018

    @DanTup
    Contributor

    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:

    1. If two extensions contribute view containers with the same ID and different titles, which gets displayed?

    2. 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?

  18. sandy081 commented on Apr 26, 2018

    @sandy081
    MemberAuthor

    If two extensions contribute view containers with the same ID and different titles, which gets displayed?

    Edit: The first one wins

    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?

    Yes

  19. added a commit that references this issue on Apr 26, 2018
  20. sandy081 commented on Apr 27, 2018

    @sandy081
    MemberAuthor

    Closing this issue.. Please file separate issues for new feature requests or bugs

  21. locked and limited conversation to collaborators on Jun 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

apifeature-requeston-testplantree-views

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions