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

Destructuring breaks Auto-Import #126

Open
nathanbabcock opened this issue Mar 26, 2023 · 1 comment
Open

Destructuring breaks Auto-Import #126

nathanbabcock opened this issue Mar 26, 2023 · 1 comment

Comments

@nathanbabcock
Copy link

I often use exports like this:

export const [encoding, setEncoding] = createSignal(false)
export const [recording, setRecording] = createSignal(false)

It's a pretty common pattern in SolidJS.

Auto Import parses these exports incorrectly, showing them with a leading square bracket in the autocomplete suggestions:

vscode-auto-import-destructuring

@nathanbabcock
Copy link
Author

Also, the second element of the tuple (setXYZ) is never picked up either.

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