Solutions for auto-import in VS Code? #3619
Unanswered
zenzen-sol
asked this question in
Q&A
Replies: 1 comment
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
VS Code wants to pull auto-imports directly from the
/@radix-ui/react-*
package, but I want auto-imports to pull from my local shadcn-ui components. That's pretty easy to implement in VS Code's settings:However, I also use
@radix-ui/react-icons
in this project. The file exclusion glob pattern above will prevent the icons from being auto-imported.I expected that
**/@radix-ui/react-!(icons)
would match everything in@radix-ui/react-*
except@radix-ui/react-icons
, but that is not the result. Instead, none of the Radix UI imports work after changing the VS Code settings to exclude**/@radix-ui/react-!(icons)
.I can't be the only person with this issue. How have others solved it?
Beta Was this translation helpful? Give feedback.
All reactions