Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

Use go list all to get pkgname to use in completions #1092

Merged
merged 3 commits into from
Jul 17, 2017
Merged

Conversation

ramya-rao-a
Copy link
Contributor

@ramya-rao-a ramya-rao-a commented Jul 16, 2017

Fixes #647

gopkgs only return the import paths of the packages that can be imported and not the package names.
Since the last part of the import path of a package need not necessarily be the package name, we cannot always decipher package name from the import path.

In this PR, we use go list all instead.

go list all is expensive. So should be used sparingly. In this case, it is run on extension activation.

@ramya-rao-a ramya-rao-a merged commit 96026f5 into master Jul 17, 2017
@ramya-rao-a ramya-rao-a deleted the pkg-name branch January 9, 2018 03:25
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants