I've been having issues lately with Visual Studio Code where it refuses to offer any Intellisense on TypeScript files, but only on some files. Currently I have my folder layout something like this:
+-- typescript
+-- project1
| +-- <ts file>
| `-- tsconfig.json
`-- project2
+-- <ts file>
`-- tsconfig.json
The tsconfig.json files are all identical except for the outFile compiler directive, as such:
{
"compilerOptions": {
"module": "none",
"target": "es5",
"noImplicitAny": true,
"outFile": "<path to js file>",
"sourceMap": true
}
}
I have been running tsc within each subdirectory separately so as to keep them as separate projects.
For reasons I cannot explain, if I look at the TypeScript file within project1, I get Intellisense on everything, but if I look at the TypeScript file within project2, there is no Intellisense at all.
I have tried to use the Reload Window and Reload TypeScript Project commands from the palette, but those don't help. I have even tried pointing Visual Studio Code's typescript.tsdk to my npm installed version of TypeScript, but that did not help either.
Is Visual Studio Code's Intellisense cache stored somewhere that can be removed to force it to rebuild the cache?