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
{{ message }}
Repository navigation
Hovering over constructor's parameters shows an oversized font for the type #4120
Hovering over constructor parameters (named or unnamed) shows an oversized font for the type. The same oversized appears when hovering over the name of an argument of a constructor with named parameters as seen below:
It gets a bit wild when the type is multiple typedefs (e.g. shelf's Middleware type)
Expected behavior
I would expect the same font size as when hovering over the member definition (this is a wide screenshot so it looks smaller)
changed the title [-]Hovering over parameters shows an oversized font for the type[/-][+]Hovering over constructor's parameters shows an oversized font for the type[/+]on Aug 25, 2022
There's a missing newline before the package in the first one though:
I think either LSP client or VS Code are supposed to convert --- to a full with line, but I can't see that on the second one, so perhaps that's related (microsoft/vscode#65094?).
We need two newlines before --- for it to be rendered as a horizontal line. Otherwise it's being interpreted to mean the line before is a header. This needs fixing in the server.
Edit: This was just one issue, which was a missing \n after Type: because a single newline in Markdown is essentially ignored and the two lines still treated as a single paragraph.
Activity
[-]Hovering over parameters shows an oversized font for the type[/-][+]Hovering over constructor's parameters shows an oversized font for the type[/+]DanTup commentedon Aug 25, 2022
Thanks, I can repro.
There's no obvious difference in the response from the server:
There's a missing newline before the package in the first one though:
I think either LSP client or VS Code are supposed to convert
---to a full with line, but I can't see that on the second one, so perhaps that's related (microsoft/vscode#65094?).DanTup commentedon Aug 25, 2022
So I think there are two issues here:
---for it to be rendered as a horizontal line. Otherwise it's being interpreted to mean the line before is a header. This needs fixing in the server.The missing newline beforepackage:in the rendering may be a VS Code issue - it's rendering differently to I would expect (or GitHub does) so I've filed Newline missing in markdown rendering microsoft/vscode#159161.Edit: This was just one issue, which was a missing
\nafterType:because a single newline in Markdown is essentially ignored and the two lines still treated as a single paragraph.DanTup commentedon Sep 5, 2022
Fix on the way at https://dart-review.googlesource.com/c/sdk/+/257582/.
[analysis_server] Fix missing newlines after types in LSP hovers
DanTup commentedon Sep 6, 2022
Fixed by dart-lang/sdk@8bf496e. It's an SDK change, so will show up in a future SDK release.