vscode-docomment icon indicating copy to clipboard operation
vscode-docomment copied to clipboard

Incorrect comments generation for variables and method calls

Open SteamUpdate opened this issue 7 years ago • 3 comments

Hello! It's can be fixed?

vscode wrong comments

For this case must be

using System;

namespace EleWise.ELMA.Core.Model
{
    public class TestClass
    {
        public void Main()
        {
            ///
            var prop = "";
            ///
            Console.WriteLine(prop);
        }
    }
}

SteamUpdate avatar Jul 19 '18 09:07 SteamUpdate

I know how to fix second case (Console.WriteLine). Just delete this line of code

SteamUpdate avatar Jul 24 '18 05:07 SteamUpdate

Thanks @SteamUpdate ,

This is a deep problem, I can not fix it with the current architecture. We need to add AST, which makes the extension very heavy. This is an important issue, please do not close it. 🙇‍♂️

kasecato avatar Jul 28 '18 04:07 kasecato

I might not be up to date with a certain feature here, but does C# even care about documentation comments within a method body? I don't think these will get picked up anywhere to begin with. Still an annoying issue, but IMHO not vital.

gruberr avatar Mar 31 '19 11:03 gruberr