CodeiumVisualStudio icon indicating copy to clipboard operation
CodeiumVisualStudio copied to clipboard

[Bug] Generate Docstring replaces Method Header (C#)

Open Der-Floh opened this issue 1 year ago • 0 comments

I don't know how it is for other Languages, but when right clicking a Method in C# and choosing "Generate Docstring for Function" the generated Docstring's "Apply Diff" Functionality replaces the Method Header.

My Method:

private bool TestSomething(string text)   // <-- Apply diff tries to replace this
{
    return string.IsNullOrEmpty(text);
}

When Diff applied:

// Checks if the given string is null or empty.

{
    return string.IsNullOrEmpty(text);
}

Der-Floh avatar Jan 10 '24 08:01 Der-Floh