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
So I think we're still in the same position - we can only currently do this by replacing an existing field that currently contains useful info. The detail field currently contains the type which can be useful to know if you can access shades of a color:
It could be argued that the preview might be more useful than this, but since this comes from shared code and is consistent for all completion items, I'm not sure removing it and showing a hex code is ideal.
This was implemented in dart-lang/sdk@d8376f1. It's a change in the analysis server so it'll show up in a future SDK release (not a Dart-Code release).
Activity
11 remaining items
DanTup commentedon Mar 14, 2024
Actually, I took another look, and although the regex is more relaxed, it still checks for start/end:
So I think we're still in the same position - we can only currently do this by replacing an existing field that currently contains useful info. The detail field currently contains the type which can be useful to know if you can access shades of a color:
It could be argued that the preview might be more useful than this, but since this comes from shared code and is consistent for all completion items, I'm not sure removing it and showing a hex code is ideal.
RedCMD commentedon Mar 14, 2024
it checks if the hex code is at the very beginning or the very end
so you can still put documentation there
the 1st
detailfield doesn't workonly the 2nd one in the expandable documentation section does
DanTup commentedon Mar 18, 2024
Oops, I didn't read the condition correctly. I'll take a look, thanks :)
DanTup commentedon Aug 28, 2024
Looks like this works, thank you!
[analysis_server] Include color hex codes in LSP completions to get c…
DanTup commentedon Aug 29, 2024
This was implemented in dart-lang/sdk@d8376f1. It's a change in the analysis server so it'll show up in a future SDK release (not a Dart-Code release).