VSCode - how force auto-imports from 'drizzle-orm/pg-core' instead of 'drizzle-orm/mysql-core'

Hey, I'm using drizzle ORM with Visual Studio Code and it always auto-completes the 'drizzle-orm/mysql-core' package even when I'm already importing other stuff from 'drizzle-orm/pg-core' in the same file. It's not a big deal, you can just scroll to 'drizzle-orm/pg-core' but it's annoying. I've so far tried, but with no luck: - Setting autoImportFileExcludePatterns:
"typescript.preferences.autoImportFileExcludePatterns": [
"drizzle-orm/mysql-core"
]
"typescript.preferences.autoImportFileExcludePatterns": [
"drizzle-orm/mysql-core"
]
^- no luck there, I've even tried some variations with full paths, pattern matching etc, nothing helped - Having a local drizzle.ts file that exports everything from 'drizzle-orm/pg-core' ^- this gets completely ignored, no auto-import suggestions Does anybody have the same issue or even a solution?
3 Replies
loczek
loczek14mo ago
be sure you restart your typescript server and it should work 👍
Kamen
KamenOP14mo ago
So the exclude pattern works for you? I've tried restarting VSCode but it didn't work 😦 Maybe it's just something with my setup
loczek
loczek14mo ago
Yep, the same setting as you provided works for me
Want results from more Discord servers?
Add your server