I'm aware of the VS Code setting named typescript.preferences.autoImportFileExcludePatterns
(ref), and my local VS Code is using a recent TypeScript version which support that setting:
Yet I'm not able to prevent VS Code from suggesting to import members from node:test
module when writing my test files. For the records I'm using vitest
as a test runner, which has typical function names clashing with node:test
ones (describe
, beforeEach
, it
).
I tried the following setting, with no luck:
"typescript.preferences.autoImportFileExcludePatterns": ["node:test"],
Of course node-test
is not an npm package, so the classic example using "**/node_modules/...some package name..."
does not apply here.
Did anyone come into this already?