nsf / gocode

An autocompletion daemon for the Go programming language
MIT License
5.01k stars 657 forks source link

Autocomplete inside Struct literals should not display fields which have already been set #450

Open ramya-rao-a opened 7 years ago

ramya-rao-a commented 7 years ago

From @a-h on April 24, 2017 14:29

Scenario

Actual Behaviour

Fields A, B, C and D are displayed in the autocomplete list

Desired Behaviour

Only C and D are displayed in the list, or they are displayed with strikethrough to make it easier to see which fields you could still set.

screen shot 2017-04-24 at 15 21 52

Copied from original issue: Microsoft/vscode-go#940

ramya-rao-a commented 7 years ago

We use gocode to get suggestions for the autocompletions.

Therefore, will move this issue to the gocode's repo