Skip to content
| Marketplace
Sign in
Visual Studio Code>Linters>dartographNew to Visual Studio Code? Get it now.
dartograph

dartograph

Coden

| (0) | Free
Dependency-graph evidence queries for Dart: dead code, dependency hygiene, and duplication findings as Problems.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

dartograph for VS Code

Editor surface for dartograph, the permanently free (MIT) dependency-graph and evidence-query CLI for Dart.

The extension shells out to the dartograph executable and renders its JSON reports in the Problems panel. It does not replace the Dart analyzer — findings are graph evidence with stated limitations, never a deletion verdict.

Requirements

dart pub global activate dartograph

Commands

Command What it does
dartograph: Analyze Workspace Runs dead, deps, and dup on every workspace folder containing pubspec.yaml, and maps findings to Problems.
dartograph: Check Impact of Current File Runs impact --changed with the open Dart file and marks impacted symbols and related tests.
dartograph: Clear Findings Clears dartograph diagnostics.

Settings

Setting Default Meaning
dartograph.executable dartograph Path to the CLI.
dartograph.runOnSave false Re-run the workspace analysis shortly after a Dart file is saved.
dartograph.minTokens 40 Minimum token window reported by dup.
dartograph.args ["--incremental", ".dartograph/cache"] Extra arguments appended to every invocation.

Reading the findings

  • dead findings are warnings like declaration: not reachable from retained roots. They are observations with evidence, not deletion advice.
  • deps findings are pinned to pubspec.yaml because the audit reports package names, not source ranges.
  • dup findings are informational ranges spanning each duplicated block.
  • Report limitations are written to the dartograph output channel — absence of findings is not proof of safety.

Build and test

The extension is plain CommonJS JavaScript with no build step.

node --check extension.js
node test/mapper.test.js

Package with vsce package (requires npm i -g @vscode/vsce), or copy this directory into ~/.vscode/extensions/ for local use.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft