-
Notifications
You must be signed in to change notification settings - Fork 78
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
Debug protocol extension: 'icon' attributes on expression evalution results #30
Comments
@gregg-miskelly since the VS Code UI is very light on icons, we will probably not introduce icons in the debugger UI. But it makes sense to have this (optional) information available for Variables. I suggest we introduce an optional attribute 'kind' for this (because you've used 'kind' yourself in the description from above). |
@gregg-miskelly @jacdavis could you come up with a list of 'kind' values that we could add to the protocol as recommended values? Those values should be mappable to Xamarin and VS icons. |
I'll track down the full list as the ui must interpret a bit field of possible values as described here (https://msdn.microsoft.com/en-us/library/bb145595.aspx). I'll take a look at how the ui processes these and get back to you. |
Looking at the source, the icons are a combination of three pieces of information: We also take into account if the item has side effects which doesn't change the icon except we use this for switching between a true property and a property that has side effects (which we show as a method). I think this implies we either need to expand the list out to account for all cases, or allow for multiple attributes to be exposed. For instance, type=Property Visibility=Public. |
@jacdavis thanks for your investigation. |
To be able to use the debug protocol in other IDEs (Visual Studio, Xamarin Studio) or VS Code in the future we should think about how the debug protocol should support attributes on an expression to indicate what kind of item a child item is for example:
We have attributes for:
The text was updated successfully, but these errors were encountered: