如何禁止 VS2022 实时编译 typescript
Visual Studio 2022 打开一个解决方案,Error List 窗口显示一堆 typescript 错误,但我不需要在 VS 中编写 typescript 代码,请问如何禁止 VS2022 对 typescript 进行实时编译?
回答
打开 Tools > Options > TextEditor > JavaScript/TypeScript > Project > General ,选中下面2个选项可解决
- Only analyze projects which contain files opened in the editor
- Only report diagnostics for files opened in the editor

解决方法来自 Disable TypeScript/JavaScript parsing on project/solution level