Skip to content

Feature request: keep track of and suggest known package aliases #2007

@mmindenhall

Description

@mmindenhall

When I assign a package alias, I want the alias to be suggested by alt+enter completion elsewhere in my project. For example, if I have created this alias in one file:

import (
    // some imports
    log "github.com/cihub/seelog"
    // more imports
)

Then in another file that does not have a matching log import statement, if I type the following line of code:

    log.Info("log this)

I want the seelog alias to be included in the alt+enter choices for resolving the log import. Not only should it be included in the list, it should be presented as the top item.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions