I'm currently transitioning from Webstorm to Visual Studio Code due to the poor performance of Webstorm.
However, I'm facing issues with Visual Studio Code not being very efficient at detecting and importing the dependencies I need. I find myself manually searching for them, which is quite time-consuming. I'd rather endure a 15-second wait in Webstorm for it to handle imports automatically than having to do it manually in Visual Studio Code.
https://i.sstatic.net/pjeiN.png
The project I'm working on is based on the angular2 seed by @minko-gechev found at https://github.com/mgechev/angular2-seed
I have a tsconfig.json file in my base directory with the following setup:
{
"compilerOptions": {
"target": "es5",
"module": "commonjs",
"declaration": false,
"removeComments": true,
"noLib": false,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"sourceMap": true,
"pretty": true,
"allowUnreachableCode": false,
"allowUnusedLabels": false,
"noImplicitAny": true,
"noImplicitReturns": true,
"noImplicitUseStrict": false,
"noFallthroughCasesInSwitch": true
},
"exclude": [
"node_modules",
"dist",
"typings/index.d.ts",
"typings/modules",
"src"
],
"compileOnSave": false
}
Additionally, there's another tsconfig.json file in my src/client directory configured as follows:
{
"compilerOptions": {
"target": "es5",
"module": "commonjs",
"moduleResolution": "node",
"sourceMap": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"removeComments": false,
"noImplicitAny": false,
"allowSyntheticDefaultImports": true
}
}
I'm unsure why there are two separate configurations. Since the angular seed project uses typescript gulp build tasks, the compilation process might differ.
Is there any way to enhance the efficiency of Visual Studio Code in this scenario?