VSCode Extension

Overview

The sqry VSCode extension brings the full code graph into your editor. It connects to the sqry LSP server and provides semantic search, relationship navigation, code quality analysis, and code lenses — all without leaving VSCode.


Installation

Install from the Visual Studio Marketplace:

  1. Open the Extensions panel (Ctrl+Shift+X)
  2. Search for sqry
  3. Click Install

Or install from the command line:

code --install-extension verivus.sqry

The extension requires the sqry CLI to be installed and accessible on your PATH. If sqry is installed elsewhere, set the path in settings.


Features

Open the command palette (Ctrl+Shift+P) and run sqry: Search. Type a structured query or plain text — the extension runs it against the index and displays results in a dedicated panel with file links, symbol kinds, and code previews.

Relationship navigation

Right-click any symbol and choose:

Results appear in the sqry results panel with clickable file locations.

Code lenses

When enabled, sqry adds inline annotations above functions showing how many callers each function has. Click the lens to view the full caller list.

Analysis panels

The extension provides four analysis views accessible from the sidebar:

Each panel refreshes when the index is rebuilt and links directly to source locations.

Auto-indexing

On workspace open, the extension can automatically build or refresh the sqry index. Configure the behavior:


Settings

Configure the extension via VSCode settings (Ctrl+,) or settings.json:

SettingDefaultDescription
sqry.path"sqry"Path to the sqry CLI binary
sqry.limit200Maximum search results
sqry.timeoutMs15000Search timeout in milliseconds
sqry.indexTimeoutMs300000Index build timeout (5 minutes)
sqry.autoIndexOnOpen"prompt"Auto-index behavior: always, prompt, never
sqry.codeLens.enabledtrueShow caller count lenses above functions

Example settings.json:

{
  "sqry.path": "/usr/local/bin/sqry",
  "sqry.limit": 500,
  "sqry.codeLens.enabled": true,
  "sqry.autoIndexOnOpen": "always"
}

Commands

All commands are available from the command palette (Ctrl+Shift+P):

CommandDescription
sqry: SearchRun a structured or fuzzy query
sqry: Find CallersShow all callers of the selected symbol
sqry: Find CalleesShow all callees of the selected symbol
sqry: Trace PathFind call paths between two symbols
sqry: Find UnusedDetect dead code in the workspace
sqry: Find CyclesDetect circular dependencies
sqry: Find DuplicatesDetect duplicate code
sqry: Rebuild IndexForce a full index rebuild
sqry: Show Graph StatsDisplay codebase statistics