-
Notifications
You must be signed in to change notification settings - Fork 256
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
Fix Symbol View In SyntaxTreeVizualizer #634
Conversation
=> Use custom ICustomTypeDescriptor to display Symbol-Data
Do you know why a custom TypeDescriptor is needed for displaying |
What happens inside of the property grid is a call like this:
which calls then (more or less):
For SyntaxNodes it returns some properties (perhaps because of some attributes). But for symbols it returns nothing. |
Ah, I bet it's because all the properties are explicitly implemented for symbols: |
That makes sense, we have the type of the Symbol implementation not the Symbol itself. |
We could use the adapter for all kinds of selected objects, it allows a better control... |
do you want to merge it or should I change something? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @bernd5! I'll go ahead and merge this in |
See:
=> Use custom TypeDescriptor to display Symbol-Data