golang/go

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

Open

#70,450 opened on 2024年11月19日

GitHub で見る
 (5 comments) (1 reaction) (0 assignees)Go (19,008 forks)batch import
FeatureRequestToolsgoplshelp wanted

Repository metrics

Stars
 (133,883 stars)
PR merge metrics
 (30d に merged PR はありません)

説明

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.

コントリビューターガイド