While I understand that VSCode may not be perfect for all programming languages, it always seemed to have excellent support for typescript. However, I am facing some issues where it does not work as well for me. I am unsure if something is misconfigured or if I am overlooking a certain setting.
My main concern lies with the auto import feature. When attempting to import an Angular module, for example, I find that it does not function unless I manually import it initially using import {} from '@angular/router'
at the beginning of the file. Only then does VSCode recognize all the modules in the router package. Is this the expected behavior?
Another issue I encounter is the sluggishness of the auto-complete suggestions. While typing, VSCode often freezes for 1 or 2 seconds before displaying the autocomplete options.
I've included my tsconfig.json
below in case it provides any insight:
{
"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"]
}
Are there others experiencing similar issues? Or perhaps someone has found solutions to these problems?
Edit: Additional information about my system
OS: Manjaro 5.4.44-1
VSCode: v1.47.0
Typescript: 4.0.0-dev.20200710