Kamen
Kamen
DTDrizzle Team
Created by Kamen on 11/19/2023 in #help
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?
4 replies