code-d icon indicating copy to clipboard operation
code-d copied to clipboard

Documentation on hover doesn't work with shortened method syntax.

Open k2aj opened this issue 3 years ago • 1 comments

Documentation on hover doesn't show up for functions which use shortened method syntax (-preview=shortenedMethods).

E.g. in the following code documentation on hover works for fun(), but not for gun():

import std.stdio;

/// Comment
int fun() {return 13;} 

/// Other comment
int gun() => 42;

void main()
{
	writeln(gun());
	writeln(fun());
}

Serve-d log file

code-d: 0.23.2 serve-d: 0.7.4 dcd: 0.13.6

k2aj avatar Aug 21 '22 08:08 k2aj

should be fixed with next DCD and serve-d releases when they upgrade libdparse.

WebFreak001 avatar Aug 22 '22 12:08 WebFreak001