Click the version in the bottom right of VS Code.
A dropdown will appear at the top with a few options such as "Use VS Code's Version" and "Use Workspace Version".
Select "Use Workspace Version" which will select the version of typescript that tsc
is using, typically installed in your devDependencies
.
This will automatically add a line to your Workspace Configuration File that looks something like the following:
{
"typescript.tsdk": "node_modules/typescript/lib"
}
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…