Open sm11963 opened 1 month ago
Only markdown is supported in docs. The built-in stubs get converted to markdown. Perhaps a setting could be provided to convert user html docs to markdown.
Got it, yeah markdown is definitely better (at least imo).
I only stumbled on this because code blocks weren't working they way I expected (I think I'm still experiencing this https://github.com/bmewburn/vscode-intelephense/issues/563), so I went off looking for an example for how to get it working from the source 😄.
Maybe it would be better to convert the built-in stubs to markdown for consistency and good examples?
Describe the bug The hover showing a nice formatted version of documentation comment for functions works very different for standard lib and user code. Html tags seem to work perfectly for the standard lib, but get completely stripped out from user code. See the screenshots for a more effective description.
To Reproduce
function mysubstr(string $string, int $offset, ?int $length) { return substr($string, $offset, $length); }
mysubstr
andsubstr
. You should see that formysubstr
much of the content from the doc comment is removed even though they are exactly the same and it looks good forsubstr
.Expected behavior I would expect that given the same doc comments, the hover tooltip would show the same content.
Screenshots Hover tooltip in the standard lib:
Hover tooltip for copied doc comment in example code:
Just to confirm hover tooltip for
substr
in my example code:Platform and version MacOS 14.6.1, VSCode 1.93.1, Intelephense v1.12.6