-
Notifications
You must be signed in to change notification settings - Fork 683
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
Documentation output missing sections, lacking formatting, lacking newlines. #4040
Comments
@333fred do you think this is related to the changes you made recently? |
It's likely related. The formatting I implemented was best-effort, I have no doubt there is room for improvement in the tagged-text->markdown implementation. |
In particular, the issues with the newlines are a translation issue: VSCode uses markdown to render the documentation, and single newlines in markdown do not actually signal the start of a new line. There's no particularly great solution here: inserting an extra newline in the text during translation will often end up looking terrible itself, as it introduces a large amount of whitespace inbetween each line. The reason line 5 isn't . As to parameters being displayed in quickinfo, this is not what VS does, as Dustin showed. The hover implementation in omnisharp now just calls into roslyn, so if you want parameter info to be displayed that would need to be a roslyn feature request, not an omnisharp feature request. |
This is not my area of expertise, but I think this is "by design". If you want line breaks, you need to use /// <summary>
/// Line1
/// <para>Line2</para>
/// </summary> |
To add to the markdown double newline required to output a single newline, there is an alternative - double space at the end of the line. So that would be a more aesthetically pleasing option. VSCode obeys this rule, so a simple solution to newlines could be replace all The second part of the issue, outside of lacking newlines, is that there are no section headings as I've seen in past issues/comments ( #1918 (comment) and #1057 (comment) ) |
As mentioned, the latter behavior is the correct behavior. Omnisharp now uses roslyn's built-in handling for quick info. In xml comments in general, if you want a newline you should use a |
Issue Description
Documentation output for my own code is lacking sections and formatting, I've tried in several different (new) projects and it always only shows the
summary
block and never properly formats newlines. I thought this was just a long standing bug that everyone experienced, but after looking through some issues, I saw that many others seem to have much more detailed and well formatted output. Is my output the expected documentation output?Steps to Reproduce
Create any documentation.
Expected Behavior
Something like #1918 (comment)
Actual Behavior
Logs
OmniSharp log
C# log
Environment information
VSCode version: 1.48.2
C# Extension: 1.23.2
Dotnet Information
.NET Core SDK (reflecting any global.json): Version: 3.1.401 Commit: 39d17847dbRuntime Environment:
OS Name: Windows
OS Version: 10.0.19041
OS Platform: Windows
RID: win10-x64
Base Path: C:\Program Files\dotnet\sdk\3.1.401\
Host (useful for support):
Version: 3.1.7
Commit: fcfdef8d6b
.NET Core SDKs installed:
3.1.102 [C:\Program Files\dotnet\sdk]
3.1.302 [C:\Program Files\dotnet\sdk]
3.1.401 [C:\Program Files\dotnet\sdk]
.NET Core runtimes installed:
Microsoft.AspNetCore.App 3.1.2 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 3.1.6 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 3.1.7 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 3.1.2 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 3.1.6 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 3.1.7 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 3.1.2 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 3.1.6 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 3.1.7 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
To install additional .NET Core runtimes or SDKs:
https://aka.ms/dotnet-download
Visual Studio Code Extensions
The text was updated successfully, but these errors were encountered: