NuclleaR / vscode-extension-auto-import

Automatically finds, parses and provides code actions and code completion for all available imports. Works with JavaScript and TypeScript.
MIT License
31 stars 14 forks source link

higherOrderComponents seems not working #16

Open yshwaker opened 6 years ago

yshwaker commented 6 years ago

I added connectToStores in the config, and in one file i have one like export default connectToStores(ApplicationEdit);

the reason seems to be: the regex never matches when you have high order component.

it works for me when i changed (export\\s?(default)?\\s?(class|interface|let|var|const|function)?) ((${this.higherOrderComponents}).+[, (])?(\\w+) to (export\\s?(default)?\\s?(class|interface|let|var|const|function)?) ((${this.higherOrderComponents}).*[, (])?(\\w+) (.+ -> .*)