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

Do not allow import for already imported pkgs#508

Merged
ramya-rao-a merged 1 commit intomicrosoft:masterfrom
ramya-rao-a:unused-imports
Oct 6, 2016
Merged

Do not allow import for already imported pkgs#508
ramya-rao-a merged 1 commit intomicrosoft:masterfrom
ramya-rao-a:unused-imports

Conversation

@ramya-rao-a
Copy link
Copy Markdown
Contributor

@ramya-rao-a ramya-rao-a commented Oct 2, 2016

Fixes #494

In this PR, while returning list of packages that can be imported, go-outline tool is run on the file to get list of already imported packages so that the list returned by the Go: Add Import command can be filtered

Since we only need to parse the file for imports, parsing the whole file is unnecessary.
lukehoban/go-outline#4 adds the option to parse for imports only to the go-outline tool. Once that PR is merged, we can make use of the "parse imports only" feature

@ramya-rao-a ramya-rao-a merged commit bca4ff1 into microsoft:master Oct 6, 2016
@ramya-rao-a ramya-rao-a deleted the unused-imports branch October 6, 2016 18:33
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.

3 participants