Skip to content
| Marketplace
Sign in
Visual Studio Code>Data Science>It's Complicated for dbtNew to Visual Studio Code? Get it now.
It's Complicated for dbt

It's Complicated for dbt

gmiddleton

|
1 install
| (0) | Free
Interactive dbt lineage graph (DAG) for the whole project, focused on the model you are editing. Works with single dbt projects and multi-root workspaces.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

It's Complicated for dbt

Relationship status of every model in your dbt project: it's complicated.

A VS Code extension that shows the lineage of whatever you pick in a dbt project: the selected model, source, seed, snapshot, exposure, metric or semantic model plus everything upstream (blue) and downstream (orange), laid out compactly from left to right and fitted to the panel.

screenshot

column lineage

Features

  • Search to show: nothing is drawn until you pick something in the search box. Choose a suggestion (or type part of a name and press Enter) to see its lineage; clear the box to clear the graph.
  • Follows the editor (toggle with the ⦿ button or dbtLineage.followActiveEditor): opening a .sql, .py, .csv or snapshot file selects it. In YAML files (sources.yml, schema.yml, metrics, semantic models, exposures…) the entry under the cursor is selected.
  • Column lineage (toolbar Columns button): each node becomes a card listing its columns; click a column to highlight the columns it is computed from (upstream) and the columns computed from it (downstream). Columns are traced through CTEs, joins, aliases, expressions, aggregates, sub-queries, select * and UNIONs by parsing each model's compiled SQL, so it needs a manifest written by dbt compile, dbt run or dbt build. After plain dbt parse the view shows model lineage only, with a warning. Seeds use their CSV header; sources use documented columns or catalog.json (dbt docs generate) when present. Python models list columns without lineage.
  • Drag nodes (or whole column cards) to rearrange the layout; ⤢ fits the graph back into view.
  • Explore: click a node to show its lineage; double-click (or Ctrl/Cmd+click) to open its file. Switch between full lineage and direct parents/children only.
  • Workspaces & single projects: every dbt_project.yml in every workspace folder is discovered (nested/monorepo projects included). The project that contains the active file is used, with that project's manifest. Click the project name in the toolbar (or run It's Complicated: Select Project…) to switch manually.
  • Respects target-path from dbt_project.yml and the DBT_TARGET_PATH environment variable; can be overridden with dbtLineage.manifestPath.
  • Live reload: the graph refreshes when manifest.json changes (after dbt parse, dbt run, …).
  • Installed packages (dbt_packages/) are supported for both selecting and opening files.
  • Shown in the bottom panel (It's Complicated) by default; drag it anywhere, or use Open Lineage in Editor Tab for a full-size view.

Install

Search for It's Complicated for dbt in the VS Code Extensions view, or run:

code --install-extension gmiddleton.its-complicated-dbt

Usage

  1. Make sure the project has a manifest: run dbt parse (or any dbt command). If it is missing, the view offers a Run dbt parse button.
  2. Open a model and run It's Complicated: Show Lineage (Ctrl+Alt+L / Cmd+Alt+L) or click the lineage icon in the editor title bar.

Settings

Setting Default Description
dbtLineage.showTests false Include data tests / unit tests as nodes.
dbtLineage.layoutDirection LR LR (left→right) or TB (top→bottom).
dbtLineage.highlight full Show all upstream/downstream nodes, or only direct parents/children.
dbtLineage.followActiveEditor true Select the model open in the editor automatically.
dbtLineage.manifestPath "" Manifest location relative to each project root (or absolute). ${projectName} is substituted.
dbtLineage.parseCommand dbt parse Command used by Run dbt parse.

Development

npm install
npm run build        # bundles dist/extension.js and dist/webview.js
npm test             # unit tests against the example manifests
npm run test:integration  # launches a real VS Code (needs a display, e.g. xvfb-run) against examples/
npm run package      # produces its-complicated-dbt-<version>.vsix

Press F5 in VS Code to launch an Extension Development Host with the bundled examples/ workspace (two projects: shop with the default target/, finance with target-path: build).

Install a packaged build with code --install-extension its-complicated-dbt-0.1.0.vsix.

Releasing

Releases are automatic (.github/workflows/publish.yml): every push to main that passes CI is published to the Visual Studio Marketplace with Trusted Publishing (no tokens stored), tagged vX.Y.Z, and released on GitHub with the .vsix attached and the commit list as notes.

  • Versions: the next patch after the latest v* tag (0.2.0 → 0.2.1 → …). To release a minor or major version, raise version in package.json; that version is used when it is higher.
  • Skipped when nothing user-facing changed: if the packaged extension is identical to the previous release apart from the version (e.g. only tests, CI or dev tooling changed), no release is made.
  • If the marketplace environment requires a reviewer, approve the run under Actions.

Layout

Path Purpose
src/core.ts Pure logic: manifest → graph, file → node resolution, project lookup (unit tested).
src/columnLineage.ts Column lineage from compiled SQL via node-sql-parser (unit tested).
src/projects.ts Project discovery, manifest loading/caching, package folder mapping.
src/extension.ts Activation, commands, editor tracking, webview messaging.
src/lineageWebview.ts Panel view + editor-tab hosts, HTML/CSP.
webview/main.ts Graph UI (Cytoscape.js + dagre layout).
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft