What's new in the pre-releaseThe 0.7 pre-release brings more than Fabric connectivity:
Requires desktop VS Code 1.101 or newer. In Extensions, choose Switch to Pre-Release Version; if already on a pre-release, check for extension updates. CLI and Claude Code — separate companionThe project also provides a CLI for opening local models, creating focused table and measure views, exporting offline snapshots, and working with interactive viewer sessions. An agent such as Claude Code can call it to open the model and view you ask for. The CLI can also fetch a Fabric model definition using an existing Azure CLI login, subject to the definition API’s permissions. Installing this VS Code extension does not install the CLI or Claude plugin. See the CLI guide and Claude plugin setup for their separate setup and requirements. Semantic Model Viewer for VS CodeExplore your measures, model relationships, and Power Query flow in one place. Open local TMDL / PBIP files or Try the live demo before installing. The screenshots below use only the synthetic Contoso Retail demo. Select an image to open it at full size. What's new in 0.8
CLI and agent toolsPlatform release packages include For an external terminal, run Semantic Model Viewer: Install CLI for External Terminals from the Command Palette. It reports the launcher location and whether your user bin directory is on PATH. It preserves existing commands and does not edit your shell configuration. Claude Code and Codex can also install their own complete Viewer plugin, which includes the same CLI engine. Supported bundled CLI targets: macOS x64/arm64, Linux glibc x64/arm64, and Windows x64. Browser-only VS Code and remote terminals are outside this local desktop delivery guarantee. Developer VSIX builds require the explicit CLI assembly step described in bundled delivery. Fabric connectionRequires desktop VS Code 1.101 or later for its Node.js 22 extension host. Open Semantic Models in the Activity Bar. The expanded Fabric section shows Sign in to Fabric… when signed out. When signed in, it shows your account, tenant ID, Switch account…, and Sign out of Fabric. Expand Workspaces, then a workspace to load its semantic models; click a model to open it. Use Refresh on the Fabric row to reload discovery. Account actions stay available if workspace discovery fails. Saved models remain in the Semantic Models list for offline access. The existing Semantic Model Viewer: Connect to Fabric… command also remains available. The sidebar uses the standard XMLA path, which requires Read + Build permission and an enabled XMLA endpoint on supported capacity. The command’s optional Fabric definition API path requires model edit access. Both paths read metadata without model writes or data refreshes. The consumer metadata fallback uses fixed INFO.VIEW metadata queries; definitions may be unavailable depending on permissions. Users do not need to register an application or supply credentials to the viewer. Microsoft sign-in happens in the browser, and tenant consent, MFA, and Conditional Access still apply. The package must include MSAL and a published .NET XMLA helper for the host platform. The extension runs on the desktop UI host, including when the workspace is remote. VS Code for the Web is unsupported. XMLA helper support depends on the binaries included in the build; source builds require the .NET SDK to publish the helper before packaging. Saved metadata opens offline and displays its fetch time. Refresh Model downloads a new copy using the same connection method and account; a failed refresh preserves the saved copy. Switch Fabric Account… and Sign Out of Fabric control the session. Tokens stay in VS Code SecretStorage and never enter the viewer webview or snapshots. Signing out retains offline metadata; Remove Saved Fabric Model… removes the saved metadata and associated viewer layout. HTML snapshots can be shared without a Fabric connection and contain the model metadata you choose to export, including available definitions. Watch the workflowsFull illustrated VS Code guide. These recordings use the synthetic Contoso Retail model. Select a video link to watch it in your browser. Install and open a modelWatch installation — 10 seconds · Watch opening a model and exploring DAX — 35 seconds
Focus the table canvasWatch the table workflow — 24 seconds
Follow a table into its measures and DAX
The installation recording shows 0.3.9; its installation steps still apply. Feature recordings were made during development and demonstrate features available in stable 0.4.0 and newer. Install and startInstall Semantic Model Viewer in VS Code 1.101 or newer. Alternatively, download the Open your PBIP project folder, then select a model under Semantic Models in the Activity Bar. Supported models are Use + in Tables to add a table, or select a measure in Measures. Optional first-use tips can be skipped and restarted through Help; the preference is saved in your VS Code profile without modifying model files. The browser demo is separate from the extension and needs no workspace. MeasuresFollow the logic behind a measure. Trace what feeds it and what depends on it, then compare the DAX without losing your place.
Select Table or column in the Measures library, or Find dependent measures in the table inspector, to analyze a source. Inspecting a result keeps that source selected. Colored reference chips beneath each formula open the corresponding analysis. Use Direct only to exclude indirect dependent measures. This is static DAX reference analysis; calculated-column/table defining expressions and relationship filter propagation are outside its scope. TablesBuild a canvas around the tables you care about. Read cardinality and filter direction on the relationship lines, and inspect the selected table beside the diagram.
Power QuerySee how queries, parameters, functions, and table partitions feed each other. Follow a flow from input to consumer and read the M behind it.
Links come from static analysis of M. No query runs and no source data is read. Unconfirmed links remain explicit; snapshots include available query definitions. Additional (Domains and Matrix)Step back to see the model as a whole. Domains groups related tables into a map you can expand; Matrix compares fact tables with their related tables across the model.
Open a model
The extension lists models from every folder in the workspace. In a multi-root
workspace, each model shows its workspace folder name before its path. If a model comes
from a folder you do not want (for example this viewer's own repository), remove that
folder from the workspace or add a pattern such as The extension refreshes models when their definition files change. Layouts and viewer settings are saved in VS Code workspace state; table workspaces and saved views belong to their model. Share an interactive snapshotUse Save snapshot to create one self-contained HTML file with the model metadata, DAX, available Power Query definitions, and current workspace and view. The recipient opens it in a browser without VS Code, the repository, or a model connection. Changes in an opened snapshot remain in that tab; save another snapshot to keep them. Snapshots include analytical names, schema information, DAX and exact available M. Endpoint strings and parameter values written in M are included; separate connection settings and repository handles are omitted. Share definitions with their intended audience. Snapshot files make no network requests. The extension package includes no sample business model or report-usage dataset. Settings
The command palette also provides Refresh Model and Refresh Model List. PNG export is unavailable in the VS Code webview; use an interactive HTML snapshot to share a view. Development and local packagingEvery successful push to The CI workflow can also be run manually against CI assigns a unique numeric preview version only in its build checkout. It uses the next
odd minor above the committed version and the CI run number as the patch: committed
Use Node.js 22 or later for the packaging tools. From the repository root:
The package is To test interactively, open either the repository root or The canonical viewer is The extension host is plain CommonJS in ProvenanceVersion 0.2.0 integrates the VS Code extension work recovered from
Copilot diagrams (development preview)The extension bundles the shared semantic-model engine and contributes native Copilot tools for discovery, focused inspection, relationships, dependent calculations, diagrams and portable HTML. Enable Semantic Model Viewer tools in Copilot, then ask: “Show Sales, the tables connected to it, and calculations depending on it.” No global Claude Code and Codex receive separate complete CLI packages with their own runtimes; the extension is not required for those apps. See bundled agent delivery and release boundaries. Metadata returned to Copilot becomes part of the configured agent conversation; local parsing does not execute DAX, M or SQL. Power BI Desktop External Tools (Windows)Pre-release only for now: stable builds hide these commands until the Desktop connection passes testing. Remove from Power BI External Tools stays available in every build. Install the VSIX in local VS Code, then run Semantic Model Viewer: Add to Power BI External Tools. The confirmation explains the file being written. Approve Windows PowerShell if Windows requests permission to write to Power BI's machine-wide External Tools folder, then restart Power BI Desktop. Select Semantic Model Viewer (VS Code) in Desktop's External Tools ribbon. It opens the model from that Desktop window, including unsaved metadata changes. Semantic Model Viewer: Refresh Model reads Desktop again. A launch without a server/database opens an empty viewer. Connect to Power BI Desktop lets you choose an already open Desktop model. The registration starts the installed To uninstall the ribbon button, run Semantic Model Viewer: Remove from Power BI External Tools, approve the file removal if prompted, and restart Desktop. This removes only Extension updates retain the registration because it does not point into a versioned extension directory. Install a VS Code version satisfying this extension's For source builds, packaging restores the pinned Microsoft Analysis Services client and dependencies using the .NET SDK. The VSIX includes these libraries and notices; end users need no SDK or additional installer. See |













