Skip to content

Support completions for modules with build constraints #390

@tweekmonster

Description

@tweekmonster

It would be nice to get completions for OS-specific modules instead of getting nothing. I've already accomplished this in: deoplete-plugins/deoplete-go#73, but I agree with @nhooyr that this should be a feature in gocode.

Files such as thing_freebsd.go and thing_windows.go are obvious. Files with // +build constraints are a little more difficult, but I think that if the build constraint is // +build windows freebsd it should be safe enough to go with the first OS within the context of that module.

If you don't have time to look into this, could you point me to the part of the source that would need to be changed for this? I tried looking, but I'm not sure where to start.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions