writer
writer copied to clipboard
Generated lines are not commented
The extension is generating remarkably informative text. But, oddly, none of the generated text is commented:
Language c++. Happens in in headers and cpp files. OS: Windows 10, VSCode 1.68.1
The output looks like this:
protected:
A function that is called when the button is drawn.
void draw_self() override;
@mdavis199 that's really weird because we do add comments to functions generated in C++. Do you know when docstring format you have selected?
I tried them all. The formats I focused on were "Auto" and "Doxygen" (which I think is the default for CPP files.). At no time were the generated lines commented. I also tried disabling clang-format to see if that was the problem; but it made no difference either way.
I have exactly the same problem now, but it worked perfectly till last november. I have just tried reinstalling an old version of Mintlify but it does not fix the problem. Such a pity.
@therealiacobina I had the same issue when i install v2.1.* or v2.2.*; I reinstalled v2.0 it worked fine.
v2.1 and v2.2
The code `int add(int a, int b){ return a+b; }` is defining a function named `add` that takes two integer parameters `a` and `b`. Inside the function, it adds the values of `a` and `b` together and returns the result.
int add(int a, int b){
return a+b;
}
v2.0
/**
* The function "add" takes two integers as input and returns their sum.
*
* @param a The first parameter is "a", which is an integer.
* @param b The parameter "b" is an integer that represents the second number to be added.
*
* @return the sum of the two input integers, `a` and `b`.
*/
int add(int a, int b){
return a+b;
}