-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Leave the non-recognized doxygen commands in comments #5706
Comments
@jhortenstine I think the intent is to avoid showing "too much" info, but it seems like only specifically handled commands should be omitted that are deemed to be "too much", instead of omitting all unrecognized commands by default. The fact that we don't show \short comments (equivalent to \brief) is an example where were are definitely omitting comments where we should not be (not sure if \note, \pre, and \post fall into that case or not). I filed a VS issue at https://developercommunity.visualstudio.com/content/problem/1093392/cc-doxygen-comments-are-not-shown-for-commands-tha.html |
I am curious on what "too much" info is (not saying it is wrong design). I thought the previous behavior was just to display the entire comment (at least I could not make it drop text). Thank you for filing this issue. |
Yes, the previous behavior displayed the entire raw comment formatted as text. I'm not sure which commands would count as "too much" info -- that's just what I was told by the VS VC team when I hit the same issue, but I was using @details so I didn't realize the hiding was being applied to all unrecognized commands. Hopefully, they could document what the expected behavior is in regards to which doxygen commands are shown specially, shown as plain text, or not shown. |
Just to clarify, the expected behavior for displaying non-Doxygen comments and Doxygen comments in tooltips are different, so I don't think this is a regression for Doxygen support feature. Simple text comment (without Doxygen tags/commands) should still display the entire text as there are no text to parse by tags. Doxygen comments currently display info in the tooltips from the following tags:
Edit: perhaps this is a feature request to display additional Doxygen tags, like add a settings to specify which tags to display. |
Does VS Code support collapsible sections in tooltips? If so, we could potentially place the raw comment in there as a stop gap. |
@michelleangela This is not a feature request to display additional Doxygen tags. This is a request to see all the text from the comment. For example: |
Thanks for clarifying and providing additional info. We've decided to address this issue by providing settings to allow users to choose between the following options:
These options will be applied to the hover and auto-complete tooltips. It will not be applied to the signature help tooltip, which is specifically designed to only show the comment of the current active parameter (whichever parameter the cursor is on), and is followed by brief comment. Since this issue is about the presentation layer, it is not an issue against the Doxygen parser that is also used by Visual Studio. So this issue is not dependent on the one filed for Visual Studio at https://developercommunity.visualstudio.com/content/problem/1093392/cc-doxygen-comments-are-not-shown-for-commands-tha.html |
Re-opening until it is released in 0.29.0 |
With https://github.com/microsoft/vscode-cpptools/releases/tag/0.29.0-insiders2 you can set the C_Cpp.simplifyStructuredComments setting to false to show all comments. Let us know if you have any additional feedback on that, in particular, the styling changes. |
The only thing I saw missing was the param's "in", "out", or "in, out". Edit: The in/out is much less important than the fix you have. Thank you for providing a fix. |
@sean-mcmanus The option shows as "C_Cpp.simplifyStructuredComments" not "C_Cpp.simplyStructuredComments"
|
I corrected the typo. |
Created a feature request on Visual Studio to support '['dir']' of command Doxygen GitHub issue that's tracking request: |
The fix for this is in progress and will be included in release of 0.29.0.
|
Can this issue be closed (with 0.29.0) or were there additional feedback to follow up on and open new issues for? |
This can be closed. I created new issues of the other issues. |
It is possible to leave the commands that are not being converted? We use \note, \pre, and \post. The current behavior is that they don't show up in the tool tip at all.
Originally posted by @jhortenstine in #658 (comment)
The text was updated successfully, but these errors were encountered: