Skip to content
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

Add support for xmldoc tags on local functions (C# 7.0+) #39113

Closed
vsfeedback opened this issue Oct 7, 2019 · 1 comment
Closed

Add support for xmldoc tags on local functions (C# 7.0+) #39113

vsfeedback opened this issue Oct 7, 2019 · 1 comment
Labels
Developer Community The issue was originally reported on https://developercommunity.visualstudio.com Resolution-Duplicate The described behavior is tracked in another issue

Comments

@vsfeedback
Copy link

This issue has been moved from a ticket on Developer Community.


Support for local functions was added in C# 7.0, which is awesome. However, decorating a local function with <summary>...</summary> tags will not produce any Intellisense in Visual Studio 2019 (as of version 16.2.5):

private static string GetText(string path, string filename)
{
    /// <summary>
    /// Append a path separator character to the specified file path.
    /// </summary>
    string AppendPathSeparator(string filepath)
    {
        if (!filepath. EndsWith(@"\"))
           filepath += @"\";

return filepath;   
    }

// No Intellisense for the "AppendPathSeparator" local function will appear here.
    var sr = File.OpenText(AppendPathSeparator(path) + filename);
    var text = sr. ReadToEnd();
    return text;
} 

It would be great to have some way of producing Intellisense for local functions.


Original Comments

Jane Wu [MSFT] on 9/18/2019, 08:07 PM:

Thank you for taking the time to provide your suggestion. We will do some preliminary checks to make sure we can proceed further. We’ll provide an update once the issue has been triaged by the product team.

@sharwell
Copy link
Member

sharwell commented Oct 8, 2019

Duplicate of dotnet/csharplang#2110

@sharwell sharwell marked this as a duplicate of dotnet/csharplang#2110 Oct 8, 2019
@sharwell sharwell closed this as completed Oct 8, 2019
@sharwell sharwell added the Resolution-Duplicate The described behavior is tracked in another issue label Oct 8, 2019
@sharwell sharwell added the Developer Community The issue was originally reported on https://developercommunity.visualstudio.com label Nov 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Developer Community The issue was originally reported on https://developercommunity.visualstudio.com Resolution-Duplicate The described behavior is tracked in another issue
Projects
None yet
Development

No branches or pull requests

2 participants