Skip to content

x/tools/gopls: Add a source code action to regenerate cgo definitions. #73482

@firelizzard18

Description

@firelizzard18

Is your feature request related to a problem? Please describe.
I'm always annoyed when I'm writing Go that calls C and I have to scroll up to the top of the file to click regenerate cgo definitions whenever I use a C definition I haven't used previously.

Describe the solution you'd like
When I type C.FooBar and FooBar is not yet defined I'd like a quick action to appear so I can use [Ctrl]+. to easily regenerate cgo definitions.

Describe alternatives you've considered
Adding a command to execute regenerate cgo definitions so I can bind that to a key sequence, but that command doesn't exist AFAIK.

Additional context
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    FeatureRequestIssues asking for a new feature that does not need a proposal.NeedsDecisionFeedback is required from experts, contributors, and/or the community before a change can be made.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions