Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import/ignore commented #2862

Merged
merged 2 commits into from
Apr 27, 2020
Merged

Conversation

bhcleek
Copy link
Collaborator

@bhcleek bhcleek commented Apr 27, 2020

import: disregard commented imports

Adjust the regular expression that matches existing imports so that
commented out package imports will will not be matched.

Fixes #1717

import: add test

Add a test to verify that imports that are commented out are ignored by
go#import#SwitchImport

Adjust the regular expression that matches existing imports so that
commented out package imports will will not be matched.

Fixes fatih#1717
Add a test to verify that imports that are commented out are ignored by
go#import#SwitchImport
@bhcleek bhcleek added this to the vim-go 1.23 milestone Apr 27, 2020
@bhcleek bhcleek merged commit 999dab0 into fatih:master Apr 27, 2020
@bhcleek bhcleek deleted the import/ignore-commented branch April 27, 2020 17:57
bhcleek added a commit that referenced this pull request Apr 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

GoImport doesn't import commented packages
1 participant