Workspace Diagnostics
Problems for the whole workspace, not only open files. VS Code only reports errors for the files you have open. Workspace Diagnostics runs the checkers your project already has (TypeScript and ESLint) across every package in the background and lists the results in the Problems panel and in a per-package tree.
What It Does
- Runs
tsc --noEmit for every tsconfig.json in the workspace, one run per project.
- Runs ESLint in every top-most directory that has an ESLint config (flat
eslint.config.* or .eslintrc*). ESLint before v9 is read with -f unix; ESLint v9 removed that formatter, so v9 and later are read with -f json. ESLint 9 needs a flat config: a directory with only a legacy .eslintrc* is skipped with a note.
- Understands monorepos: packages come from
workspaces in package.json (npm, yarn) and pnpm-workspace.yaml. The Workspace Problems view in the Explorer groups problems by package, then file, then problem. The view appears when the workspace has a tsconfig or ESLint config.
- Publishes the results to the Problems panel and shows error and warning counts in the status bar. For open files, tsc problems (and ESLint problems when the ESLint extension is installed) are left out of the panel by default because those tools already report them (
workspaceDiagnostics.hideOpenFiles). The tree still lists everything.
- Uses the TypeScript and ESLint installed in your project (
node_modules), resolved from each project directory upwards, up to your home folder at most. If one is missing, the view shows a note instead of silently reporting zero problems.
- Runs checkers as child processes with an argument list and no shell, with a concurrency limit, a per-run timeout and cancellation. Cancelling or timing out stops the whole process tree.
The extension runs binaries from your workspace, so it is disabled in Restricted Mode (untrusted workspaces). Like tsc -p, TypeScript projects that use project references need their referenced projects built first.
How Checkers Run
- Node version.
tsc and ESLint run on the Node runtime that ships with VS Code (the extension host), not on the node in your shell or version manager. Tools that need a specific Node version or native modules built for it can behave differently from your terminal.
- Build info and caches stay out of your repository. For TypeScript 4 and later,
tsc runs with --incremental --tsBuildInfoFile pointing into VS Code's extension storage, so composite and incremental projects do not write *.tsbuildinfo files into your tree and repeat scans are faster. When workspaceDiagnostics.eslintCache is enabled, ESLint runs with --cache --cache-location in the same storage, so no .eslintcache appears either.
- ESLint before v9 with a legacy config also lints
.js, .jsx, .mjs, .cjs, .ts, .tsx, .mts and .cts files.
- Windows. Tools are started without a shell, so
.cmd and .bat files such as npx, pnpm, npm and a bare eslint cannot be used as a custom checker command and fail with ENOENT or EINVAL. Use an .exe, or run a Node script with "command": "node" and the script path in args.
Features (Free vs Pro)
| Feature |
Free |
Pro |
Whole-workspace scan with tsc and ESLint |
Included |
Included |
| Monorepo grouping by package, Workspace Problems view, status bar counts |
Included |
Included |
| Problems panel integration, cancel, concurrency and timeout limits |
Included |
Included |
| Baselines: save current problems and show only new ones |
Upgrade prompt |
Included |
| Watch mode: re-run affected checkers after save |
Upgrade prompt |
Included |
| Custom checkers with a regular expression problem matcher |
Upgrade prompt |
Included |
| Export report (Markdown and JSON) |
Upgrade prompt |
Included |
Commands
workspaceDiagnostics.scan (Workspace Diagnostics: Scan Workspace): Scans every workspace folder.
workspaceDiagnostics.cancel (Workspace Diagnostics: Cancel Scan): Stops planning and running checkers.
workspaceDiagnostics.clear (Workspace Diagnostics: Clear Problems): Removes all published problems and pending watch re-runs.
workspaceDiagnostics.saveBaseline (Workspace Diagnostics: Save Baseline (Pro)): Waits for running checkers, then writes .workspace-diagnostics-baseline.json to each workspace folder. It refuses to save if the last scan was cancelled or incomplete, or while any checker failed or timed out. Later scans hide the problems it records.
workspaceDiagnostics.clearBaseline (Workspace Diagnostics: Clear Baseline (Pro)): Deletes the baseline file.
workspaceDiagnostics.toggleWatch (Workspace Diagnostics: Toggle Watch Mode (Pro)): Turns watch mode on or off for this workspace (stored in VS Code workspace state without modifying .vscode/settings.json).
workspaceDiagnostics.exportReport (Workspace Diagnostics: Export Report (Pro)): Opens a Markdown or JSON report.
workspace-diagnostics.enterLicense (Workspace Diagnostics: Enter License Key): Activates a Pro license key in VS Code SecretStorage.
Settings
workspaceDiagnostics.typescript.enabled (boolean, default true): Run tsc for every tsconfig.
workspaceDiagnostics.typescript.tsconfigNames (string[], default ["tsconfig.json"]): File names treated as TypeScript projects.
workspaceDiagnostics.eslint.enabled (boolean, default true): Run ESLint.
workspaceDiagnostics.eslintCache (boolean, default false): Pass --cache to ESLint using extension storage. Off by default because cached runs can give stale results for cross-file rules.
workspaceDiagnostics.exclude (string[]): Globs for directories never searched. Defaults: node_modules, dist, out, build, coverage, .git, .next, .turbo, .yarn, .venv, .cache, .nx, .angular, .svelte-kit.
workspaceDiagnostics.maxConcurrency (number, default 2): Checkers running at the same time.
workspaceDiagnostics.timeoutSeconds (number, default 300): Time limit for one checker run.
workspaceDiagnostics.hideOpenFiles (boolean, default true): Leave tsc (and installed-ESLint) problems for open files out of the Problems panel.
workspaceDiagnostics.watch (boolean, default false, Pro): Re-run affected checkers after a source file is saved. Saves of files that match workspaceDiagnostics.exclude or are not source files are ignored. Only a user-level value takes effect automatically; Toggle Watch Mode stores per-workspace state in VS Code workspace state instead of writing .vscode/settings.json.
workspaceDiagnostics.watchDebounceMs (number, default 1500, Pro): Delay after the last save.
workspaceDiagnostics.showBaselined (boolean, default false, Pro): Show baselined problems again.
workspaceDiagnostics.customCheckers (object[], default [], Pro): Extra commands, see below.
workspace-diagnostics.apiBaseUrl (string, default ""): Override the licensing API base URL (must use https://, machine-scoped).
workspace-diagnostics.webBaseUrl (string, default ""): Override the web storefront base URL (must use https://, machine-scoped).
Custom checkers (Pro)
Each entry runs once per workspace folder. The command is started directly with the given arguments, never through a shell. pattern is a regular expression applied to every output line (stdout and stderr) with the named groups file and message (required) and line, column, endLine, endColumn, severity, code (optional). watchGlob (optional) is a glob relative to the workspace folder; in watch mode the checker re-runs when a matching file is saved.
Because a repository can ship these settings, the first scan asks you to allow the exact commands (modal, Allow or Don't allow). The approval is stored for this workspace and is requested again whenever the commands change. Until you allow them, custom checkers are skipped and background runs never prompt.
{
"workspaceDiagnostics.customCheckers": [
{
"name": "mypy",
"command": "mypy",
"args": ["--show-column-numbers", "."],
"watchGlob": "**/*.py",
"pattern": "^(?<file>(?:[A-Za-z]:)?[^:]+):(?<line>\\d+):(?<column>\\d+): (?<severity>\\w+): (?<message>.*)$"
}
]
}
The optional (?:[A-Za-z]:)? prefix in file keeps Windows paths such as C:\proj\a.py intact.
Privacy and Data Handling
| Data |
Where |
Retention |
| Problems (file paths and messages) |
Memory only, shown in the Problems panel and the tree |
Until the next scan or window close |
| Baseline file |
.workspace-diagnostics-baseline.json in your workspace, only if you save one |
Until you delete it |
| TypeScript build info and ESLint caches |
VS Code extension storage on your machine |
Until you clear the storage |
| Reports |
An untitled editor |
Until you save or close it |
| License key, product ID, machine ID hash |
Sent to the licensing API (workspace-diagnostics.apiBaseUrl) on Pro activation and refresh |
Active license lifetime |
| Telemetry |
None |
None |
No source code, file paths or problems are sent anywhere. There is no telemetry and no analytics.
Offline Behaviour
- Scanning, parsing, baselines and reports never use the network.
- Paid licenses are verified offline using the bundled Ed25519 public key with a 14-day grace period.
Pricing
Workspace Diagnostics is free to use. Pro adds baselines, watch mode, custom checkers and report export.
- Pro: $4/month or $36/year
- All Access (every Pro extension): $12/month or $99/year
View plans and buy. After purchase, sign in to your account to copy your license key, then run Workspace Diagnostics: Enter License Key.
Support
Report issues or request help at github.com/toolsmith-labs/support.
| |