-
Notifications
You must be signed in to change notification settings - Fork 137
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
Added documentation panel to the SWQL studio #185
Added documentation panel to the SWQL studio #185
Conversation
} | ||
} | ||
|
||
public static void RebuildVerbArguments(TreeNode verbNode, IMetadataProvider provider) |
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.
Could this be handled in AddVerbsToNode
instead?
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.
No, it was designed as lazyloading
if (data is SwisMetaDataProvider) | ||
return ProviderDocumentation(provider); | ||
|
||
if (data is string nameSpace) |
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.
Should we have a class for namespaces? Is string
sufficient?
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.
There is no logic behind the namespace now, is string is still enough
return builder.ToString(); | ||
} | ||
|
||
public static string ToNodeText(string name, int childsCount) |
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.
"children" instead of "childs"
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.
Fixed
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.
Looks good! This should be a helpful feature. I added a few minor comments, but nothing critical.
Added new panel below Object explorer in SWQL studio to show complete metadata documentation.
Currently the panel shows the same information like ToolTips, but in another formatting. In the future i want to add other documentation (e.g. access control list).