首页 新闻 赞助 找找看

如何禁止 VS2022 实时编译 typescript

0
悬赏园豆:30 [已解决问题] 解决于 2022-04-04 13:36

Visual Studio 2022 打开一个解决方案,Error List 窗口显示一堆 typescript 错误,但我不需要在 VS 中编写 typescript 代码,请问如何禁止 VS2022 对 typescript 进行实时编译?

dudu的主页 dudu | 高人七级 | 园豆:31075
提问于:2022-04-04 12:42
< >
分享
最佳答案
0

打开 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

dudu | 高人七级 |园豆:31075 | 2022-04-04 13:35
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册