VS Code 智能感知和 TypeScript 编译不匹配
Mismatch between VS Code intellisense and TypeScript compilation
当 VS Code 使用相同的 TypeScript 版本时,是否可以显示 TypeScript 编译器未捕获的错误?
我的 VS Code 安装使用的是 TypeScript 2.6.2 版。我看到 intellisense 在我的一个代码文件中检测到错误 'Parameter ... implicitly has an 'any' type
,但是当我 运行 tsc 编译器时,没有错误。
这个行为好像是突然开始的;前一秒代码编辑器还很干净,下一秒就在某些行下面出现了所有这些红线。
这是因为 tsconfig.json 和 tsconfig.build.json
不匹配
当 VS Code 使用相同的 TypeScript 版本时,是否可以显示 TypeScript 编译器未捕获的错误?
我的 VS Code 安装使用的是 TypeScript 2.6.2 版。我看到 intellisense 在我的一个代码文件中检测到错误 'Parameter ... implicitly has an 'any' type
,但是当我 运行 tsc 编译器时,没有错误。
这个行为好像是突然开始的;前一秒代码编辑器还很干净,下一秒就在某些行下面出现了所有这些红线。
这是因为 tsconfig.json 和 tsconfig.build.json
不匹配