golang/go

x/tools/gopls: hover over unkeyed field should show field info

Open

#70.450 aperta il 19 nov 2024

Vedi su GitHub
 (5 commenti) (1 reazione) (0 assegnatari)Go (19.008 fork)batch import
FeatureRequestToolsgoplshelp wanted

Metriche repository

Star
 (133.883 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

When hovering over the name of a field in a composite literal, we show info about that field.

But when hovering over a value in an unkeyed literal, we show nothing. If anything, field information would be more useful in an unkeyed literal! I recently bumped into this while working in the middle of a large table driven test.

This should be easy to add.

Guida contributor