-
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
Better styling for tree items that are actions #149254
Comments
Having the text be link-blue, with an underline that appears when hovering, I think would go a long way. However, I wouldn't necessarily want that to be the case for all tree items that have a command attached--for example, for Azure resources with no associated extension, clicking will display the JSON properties returned by the ARM SDK. Thus, all of those resources have commands, but it would look weird if they were all blue. |
Yes, we can tell from the API whether a tree item has a command for when clicked. However, it's also very normal for regular tree items to have commands too, not just buttons. For example, in the GitHub Pull Requests and Issues extension, we open diffs on click. We could say that if it's the last tree item and it has an action then we give it special styling, but I think that could be too error prone. Instead, we should have new API that indicates that the tree item should have link/button styling. |
Why not a subset of Markdown in the TreeView? #115365 (comment) (strikethrough, italic, bold, inline code, link) |
I also think the results,
I think this sounds like a perfect plan as extensions can opt-into this behavior |
Having tree items that are really buttons is a common use case for extensions. Rather than force each extension to individually decide what a button should look like, I would prefer to give extensions a pre-defined way to make tree items look like buttons. This will give us better UX consistency for the user in addition to making it easier for extension authors. |
@misolori good point. |
I think it's a good idea and probably something we should do now. I'll let @fiveisprime comment on whether that goes "far enough", I don't feel strongly one way or the other. |
Yeah, that sounds good to me. So, we'll include the |
@fiveisprime yes |
We closed this issue because we don't plan to address it in the foreseeable future. If you disagree and feel that this issue is crucial: we are happy to listen and to reconsider. If you wonder what we are up to, please see our roadmap and issue reporting guidelines. Thanks for your understanding, and happy coding! |
We offer Tree API that encourages using Tree Items as actions. However these items are not well styled, and easily blend in to the rest of the tree.
The azure extension is using the tree item actions to the extreme and I find the experience a bit confusing.
Compared that to the debug tree item action styling
@alexr00 based on API we can always detect this items, right?
@misolori do you have ideas on how to improve the styling.
I think we should be consistent between debug and what we do here. Maybe we even start with the debug syling?
fyi @fiveisprime @bwateratmsft ideally when we improve this, then your actions will not need the "Click to" part of the text
The text was updated successfully, but these errors were encountered: