I do not expect VSCode to work flawlessly for other programming languages. But it always seemed like it has great support for typescript. But it does not work so well for me. I do not know if something is configured wrong or if I am missing something.
The biggest problem I have is with the auto import. When I try to import for example an angular module, it does not work unless I manually import it once with import {} from '@angular/router'
at the top. Then VSCode find all modules in the router package. Is this supposed to work that way?
Another problem is that auto complete suggestion are really slow. While I am typing VSCode just freezes for 1 or 2 seconds and then it show the auto complete suggestions.
This is in my tsconfig.json
if this is of any help.
{
"compileOnSave": false,
"compilerOptions": {
"rootDir": ".",
"sourceMap": true,
"declaration": false,
"moduleResolution": "node",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"importHelpers": true,
"target": "es2015",
"module": "esnext",
"typeRoots": ["node_modules/@types"],
"lib": ["es2017", "dom"],
"skipLibCheck": true,
"skipDefaultLibCheck": true,
"baseUrl": ".",
},
"exclude": ["node_modules", "tmp"]
}
Does anyone else have these problems? Or does anyone know how to solve these?
Edit: More info of my system
OS: Manjaro 5.4.44-1
VSCode: v1.47.0
Typescript: 4.0.0-dev.20200710