You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
struct A {
/// doc comment 1
a : String
}
enum B {
/// doc comment 2
C
}
enum D {
E
}
When focusing on the a, the extension will show only the attribute itself. But focusing on B and C will show doc comment 1. Focusing on E will show doc comment 2. As the image below:
If there is any toplevel doc comment in the leading of A, just like:
/// doc comment A
struct A {
/// doc comment 1
a : String
}
Focusing on a will show doc comment A. Is this behavior by design?
I use the newst MoonBit Language Extension Nightly and the following toolchain version:
Thanks for your feedback, it's a bug. The doc comment is designed to be used at the top level (leading position of structures like enum and struct), so /// ... inside the struct A should be ignored.
When focusing on the
a
, the extension will show only the attribute itself. But focusing onB
andC
will showdoc comment 1
. Focusing onE
will showdoc comment 2
. As the image below:If there is any toplevel doc comment in the leading of
A
, just like:Focusing on
a
will showdoc comment A
. Is this behavior by design?I use the newst MoonBit Language Extension Nightly and the following toolchain version:
The text was updated successfully, but these errors were encountered: