-
Notifications
You must be signed in to change notification settings - Fork 29.2k
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
Ability to contribute views containers #43645
Comments
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:
Step 2Ability to move views across
Follow up tasks:
I would defer this to next milestone due to me being not available completely in this milestone. |
@sandy081 how would the (default) order of views contributed into an activity be defined? Would it just be order of registration? |
I would love to see the possible future ability of putting a WebView into an activity as this UI/UX/API evolves as well. |
@eamodio Yes, it would be based on the order of registration. |
I'd like to suggest the ability to modify the custom activity's icon through icon packs/themes! |
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 OR Custom Views |
I'd love to see this - it feels wonky that we're putting some trees in the File Explorer pane. I'd also love for the user to be able to dock it to the other side too (this goes for existing panels too; a generic solution that lets my undock Git or search results for example). |
It would be great to have the ability for badges on the custom activities as well. Just like the change count on the SCM activity. |
Following is the contribution point I am planning to expose "contributes": {
"viewsContainers": {
"activitybar": [
{
"id": "azure",
"title": "Azure",
"icon": "resources/azure.png"
}
]
},
"views": {
"azure": [
{
"id": "cosmosdb",
"name": "Azure Cosmos DB"
},
{
"id": "docker",
"name": "Docker"
}
]
}
}
@jrieken for API discussion
@chrisdias FYI |
@sandy081 it seems that today's insiders has broken this -- The activity shows up, but the view never renders. Its |
@sandy081 Ahh ok awesome! sorry, I didn't quite get what meant initially. |
@eamodio Yeah, I fixed it today. Sorry for that. |
@sandy081 ah, great that its fixed -- thanks! (I'm assuming there won't be a new release issued until tomorrow right?) |
@eamodio Unfortunately yes. Please let me know if you are blocked, I can request a new build for you. |
If it isn't too much trouble that would be very helpful and greatly appreciated. |
How about sharing a latest build to you instead of releasing it? Does it works? |
Sure, works for me, thanks! |
Neat! :)
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 👍 |
Removed the proposed api flag and this will be available in next stable release. |
@sandy081 Two minor things I noticed while working on my outline:
|
Here is the request for 1) - #48198 Please file a separate request for 2). Thanks. |
Thanks; opened #48754 :) |
@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.) |
@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:
|
Edit: The first one wins
Yes |
Closing this issue.. Please file separate issues for new feature requests or bugs |
azure
,outline
etc.,The text was updated successfully, but these errors were encountered: