Skip to content

Feature Request: Show all errors and warnings in project for all JavaScript and TypeScript files, not just opened ones #13953

Open

Description

I am using VS Code on a project at work that has hundreds of files and many layers of nested sub-directories. I frequently make changes that break many files, such as changing the call signature of a commonly used method. Since the project is entirely typescript, it is useful to be able to open the "Problems" view and see the errors and warnings my change caused in the files I have open. However, because of the size of the project, I still need to go to my terminal and run our own make commands to see the list of problems. I then need to perform the fun dance between my terminal and VS Code, searching for the right line in the right file before I can fix the problem.

What I need is a way to tell the "Problems" view to show me all errors and warnings across all open and closed files in my project. This would allow me to see all problems in a single list and quickly click through and fix them.

Activity

  1. added
    feature-request
    on Oct 18, 2016
  2. dbaeumer commented on Oct 25, 2016

    @dbaeumer
    Member

    Wade Anderson (@waderyan) this is a feature request for the builder work we discussed with the TS team.

  3. waderyan commented on Oct 25, 2016

    @waderyan

    For reference here is a link to the issue - microsoft/TypeScript#11229

  4. plievone commented on Dec 22, 2016

    @plievone

    Well, I just use a watching build task with "problemMatcher": "$tsc-watch" (see https://code.visualstudio.com/Docs/editor/tasks#_processing-task-output-with-problem-matchers) and all errors and warnings are properly shown in the Problems view. It is quite a nice workflow because changes in open files are noticed immediately due to language server, but save triggers incremental compilation (with tsc --watch) which still takes a while, but I can control that latency by saving/not saving yet.

  5. added
    typescript
    on Jan 3, 2017
  6. maxime1992 commented on Jan 26, 2017

    @maxime1992

    any ETA on this ? There's a lot of issues opened for that feature and not sure if I missed anything or not 😄

  7. waderyan commented on Jan 26, 2017

    @waderyan

    Maxime (@maxime1992) thanks for the follow up. This is on our radar. No firm timeline yet.

  8. johnfn commented on Mar 12, 2017

    @johnfn
    Contributor

    Something I didn't realize was that it's possible to do this with the Tasks infrastructure that VSCode has. All you have to do is put this into your tasks.json:

    {
      "version": "0.1.0",
      "command": "tsc",
      "isShellCommand": true,
      "args": ["-w", "-p", "."],
      "showOutput": "silent",
      "isBackground": true,
      "problemMatcher": "$tsc-watch"
    }
    

    Then just run it and you'll get all of the errors across your entire project in the problems view.

    I'm a bit perplexed why this isn't displayed more prominently. It's super useful and cool.

  9. WilliamChelman commented on Apr 7, 2017

    @WilliamChelman

    Grant Mathews (@johnfn) Great solution, thanks a lot. I would even add the "--noEmit" argument if the sole purpose of the task is to show the errors

    {
      "version": "0.1.0",
      "command": "tsc",
      "isShellCommand": true,
      "args": ["-w", "-p", ".", "--noEmit"],
      "showOutput": "silent",
      "isBackground": true,
      "problemMatcher": "$tsc-watch"
    }
  10. 201 remaining items

  11. NoahStahl commented on Mar 8, 2026

    @NoahStahl

    This issue was incredibly annoying back in 2016, but the world has changed so much I now find it irrelevant. My LLM agent already automatically runs builds and types checks before commits and then automatically fixes whatever problems it finds. Now this is swatting a gnat with a bazooka, but in fact, I'm no longer bothered by the IDE error and warning display behavior!

    I found this issue for the same scenario but with opposite intuition: I've seen agent changes cause problems that weren't visible to it for whatever reason, but could show in the Problems view. So, I added instructions for agent to never finish a change until Problems count is 0 (among other checks, like no build errors or test failures). This seems to work well for additional feedback to get good results.

    Beyond that, eager problem surfacing is still essential for efficient workflow. It's useful to see ASAP if a change in one file has downstream impacts. If this can be known, it should be, at least for those who opt in. Waiting until build time is often significantly more overhead and time than revealing problems and linting issues pre-build.

    So, I hope it gets more work in some form. 🤞

  12. jaques-sam-tlv commented on Mar 9, 2026

    @jaques-sam-tlv

    Kyle Cordes (@kylecordes)

    My LLM agent already automatically runs builds and types checks before commits

    Please, we all should NOT rely on AI for things an AI is not made for!!

  13. zeule commented on Mar 9, 2026

    @zeule

    My LLM agent already automatically runs builds and types checks before commits

    Please, we all should NOT rely on AI for things an AI is not made for!!

    False alarm, AI is made to replace us, so everything is fine here.

  14. flurrux commented on Mar 9, 2026

    @flurrux

    Kyle Cordes (@kylecordes) Vibe typechecking sounds absolutely horrible

  15. chtpl commented on Mar 9, 2026

    @chtpl

    yeah - it's not a good idea.
    Also I don't get why this issues is being ignored by the vscode team for so long now. It will become 10 years old in October.

  16. danielbayley commented on Mar 9, 2026

    @danielbayley
    Contributor

    @kylecordes

    My LLM agent already automatically runs builds and types checks before commits

    Please, we all should NOT rely on AI for things an AI is not made for!!

    Vibe typechecking sounds absolutely horrible

    Insane. What is wrong with a linter, and a couple of commands in a pre-commit hook?

  17. tellok commented on Mar 13, 2026

    @tellok
    Contributor

    Typescript 7 is rewritten in go, with significant performance improvements, so detect all type errors in whole workspace is possible now?

  18. fbf-prog64 commented on May 26, 2026

    @fbf-prog64

    For those who are still looking for a solution, and if the experimental feature mentioned in #13953 (comment) is helpful, I just wanted to mention that the setting has been renamed to:

    {
        /*...*/
        "js/ts.tsserver.experimental.enableProjectDiagnostics": true
        /*...*/
    }

    The other name still works, but it has been deprecated.

  19. frederikhors commented on May 26, 2026

    @frederikhors

    Felipe Benítez (@fbf-prog64) does this work good?

  20. fbf-prog64 commented on May 26, 2026

    @fbf-prog64

    @fbf-prog64 does this work good?

    frederikhors, In my particular case, it has been helpful. These are my observations:

    • It does not check node_modules in my project.
    • If you close a file, their items disappear from the "Problems" panel.
    • You can run the check again if you keep the settings.json open in a tab, then set false to the option, and then true (disable and reenable).
    • You must have one file open to trigger the check.

    Most of these things have been mentioned over the years here, so I was already aware of them when I tried this workaround. 👍

  21. lagudafuadtosin commented on Sep 27, 2026

    @lagudafuadtosin

    I built an extension for this while it waits on the backlog: Project Problems.

    It finds every tsconfig in the workspace, runs that project's own TypeScript in watch mode (including TypeScript 7), and puts every error in the Problems panel, including files you have not opened. Files you do have open are left to the built-in TypeScript support, so nothing shows twice, and errors from closed files stay after you close them and update as you edit other files.

    A few things it handles that came up in this thread:

    • Vite style setups where tsconfig.json only references tsconfig.app.json and tsconfig.node.json
    • Monorepos with several tsconfigs, including configs with other names (tsconfig.scripts.json and so on) that are reached through references
    • It never writes into the project. The compiler cache goes to the extension's own storage.

    Two honest limits: it only runs in trusted folders, since it runs the project's TypeScript from node_modules, and with project references, types that cross between packages are only checked fully once those packages have been built.

    Source is here: https://github.com/lagudafuadtosin/project-problems. If it misses something in your setup, an issue there with the tsconfig would help me fix it.

  22. chtpl commented on Sep 28, 2026

    @chtpl

    I appreciate your effort but I'm not sure whether I want to install an extension just for this feature looking at all the supply chain vulnerabilities going on in the software industry recently

  23. ADTC commented on Oct 1, 2026

    @ADTC

    NOT rely on AI for things an AI is not made for!!
    Vibe typechecking

    Sam Jaques (@jaques-sam-tlv) flurrux lol the AI agent is running the same type-check command you'd run yourself or put in a pre-commit hook, and then checking the output of the command before running the commit command. Which part is "not made for AI" and which part is "vibe"? 🤣 🤣 🤣 🤣

    Welcome to the new world of slopware!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

feature-requesttypescript

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions