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

[Bug] Semicolon option only import one lib #23

Open
maxjf1 opened this issue Nov 6, 2018 · 1 comment
Open

[Bug] Semicolon option only import one lib #23

maxjf1 opened this issue Nov 6, 2018 · 1 comment

Comments

@maxjf1
Copy link

maxjf1 commented Nov 6, 2018

The no semicolon option only works in the first import.

Steps to reproduce

Tested on an react-native project (inside an empty .js file) with the following autoImports Settings:

{
  "autoimport.absolute": false,
  "autoimport.autoComplete": true,
  "autoimport.doubleQuotes": false,
  "autoimport.filesToScan": "**/*.{js,jsx,ts,tsx}",
  "autoimport.higherOrderComponents": "connect|withRouter",
  "autoimport.showNotifications": false,
  "autoimport.sourceRoot": "./",
  "autoimport.spaceBetweenBraces": true,
  "autoimport.semicolon": false
}
  1. Type View and the intellisense will suggest the import, use it to generate:
import { View } from 'react-native'

View
// Now start here
  1. Type Button and the intellisense will suggest the import, use it. It will not import the Module (if you enable the Semicolon and start over, it will work as expected).
@maxjf1
Copy link
Author

maxjf1 commented Nov 10, 2018

Link with pull request #24

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

No branches or pull requests

1 participant