显示项目中所有编译错误的 TypeScript IDE(不仅仅是打开的文件)

TypeScript IDE that show all the compilation errors in the project (not just open files)

我尝试过: - Eclipse(Codemix 插件、Palantir TS 插件、Wild Web Developer 插件) - VisualStudio 代码

所有这些似乎都只在打开文件时显示错误。 是否有 IDE 可以显示项目中所有文件的编译错误?

奖励:与 Java IDEs 等其他语言相比,这不是 TS 的标准功能有什么原因吗?

All of them seem to only show errors on open files. Is there an IDE out there that would show the compilation errors of all files in the project

如果您配置监视任务,

VSCode 会执行此操作。

配置监视任务

添加到您的 package.json scripts:

"scripts": {
    "watch": "tsc --watch --noEmit --project './tsconfig.json'"
  },

配置.vscode/tasks.json

{
  "version": "2.0.0",
  "tasks": [
    {
      "type": "npm",
      "script": "watch",
      "problemMatcher": "$tsc-watch",
      "isBackground": true,
      "presentation": {
        "reveal": "always",
        "revealProblems": "onProblem"
      }
    }
  ]
}

现在来自 vscode 命令托盘 > Tasks: Run Task > npm: watch

更多

此处涵盖的步骤:https://code.visualstudio.com/Docs/editor/tasks#_modifying-an-existing-problem-matcher

个人想法

我从事过其他工作,在 IDE 中完成了完整的打字稿观察,例如atom-typescript(当它使用我的项目服务实现时)alm-toolshttp://alm-tools.github.io/) an IDE I designed for TypeScript when the world was shifting from atom to vscode, and now planning a product aimed at UI designers that does full project watching : https://designtsx.com/