There's this new feature with Typescript 4.8 that allows you to prevent auto import from suggesting files or packages, but I can't seem to make it work.
This is the workspace setting that I have:
{
"typescript.preferences.autoImportFileExcludePatterns": [
"@stitches/react"
]
}
But then when I try to import in VS Code it still suggests the library.
I'm sure the settings are being applied because I tested adding another setting in the same file and that setting worked.