Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>DepScopeNew to Visual Studio Code? Get it now.
DepScope

DepScope

Jangho Tan

|
1 install
| (0) | Free
Dependency security inspection and vulnerability intelligence for VS Code
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

DepScope VS Code Extension

The depscope-vscode extension integrates the DepScope dependency security scanner directly into VS Code. It provides in-editor dependency inspection, vulnerability detection, and supply-chain risk analysis for npm and PyPI projects.

Capabilities

  • Scan Wizard — A self-contained graphical wizard to detect workspace dependency manifests (package.json, requirements.txt), select targets, and observe real-time scanning progress without using the Command Palette.
  • Categorized Tree View — An Activity Bar sidebar view with 4 strict groups:
    1. Confirmed vulnerabilities — OSV-matched known CVE / GHSA advisories.
    2. Heuristic signals — npm lifecycle scripts, typosquatting similarity warnings.
    3. Incomplete coverage — Dependencies with missing, unavailable, or failed coverage checks. In accordance with DepScope principles, incomplete coverage is never misclassified as clean.
    4. Clean — Packages where every check succeeded with zero findings.
  • Finding Detail Webviews — Rich vulnerability reports displaying advisory IDs with links, severity badges, risk rationale, remediation guidance, and collapsible reference links.
  • In-Editor Diagnostics — Direct integration with VS Code's Problems panel, highlighting vulnerable dependency declaration lines in package.json and requirements.txt.
  • Status Bar Integration — Displays real-time scan status, vulnerability counts, and incomplete coverage alerts with click-to-open wizard access.

Prerequisites

The extension acts as a client to the local depscope-api service. It does not bundle the Go binary.

Before running the extension, compile depscope-api and ensure it is available either on your system PATH, inside your workspace ./bin/ folder, or in node_modules/.bin/:

# From the repository root
go build -trimpath -o bin/depscope-api ./cmd/depscope-api

Build and Run Locally

  1. Install Node.js (v20+ recommended) and install extension dependencies:
cd vscode-extension
npm install
  1. Compile the TypeScript sources:
npm run compile
  1. Launch the Extension Development Host:
    • Open the vscode-extension folder or repository root in VS Code.
    • Press F5 (or select Run > Start Debugging) to start a new Extension Development Host window.

Running Tests

To run the automated integration test suite in a headless VS Code instance:

npm test

Usage Walkthrough

  1. Open any workspace containing package.json or requirements.txt.
  2. Click the DepScope icon in the Activity Bar sidebar.
  3. If no scan has been performed, click the Scan Workspace welcome button or the $(play) toolbar icon.
  4. In Step 1 of the Scan Wizard, confirm which manifests to inspect, then click Scan Workspace.
  5. Once completed, explore the 4-tier tree view and click any package leaf to review detailed findings in the side Webview panel.
  6. Open your package.json or requirements.txt to inspect squiggly problem markers on vulnerable dependencies.
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft