Skip to main content
The JT-View-Exports-SVG.scanning command performs a comprehensive scan of your workspace to find and catalog all SVG icon components across your project.

Command Details

Command ID

JT-View-Exports-SVG.scanning

Display Title

Start Scanning

Category

View Exports SVG

Overview

Unlike the Show Menu command which processes specific files, the scanning command searches your entire workspace to build a complete inventory of SVG icon exports.

What Gets Scanned

The scanning process:
  1. Searches the workspace for JavaScript and TypeScript files
  2. Respects ignore patterns from your configuration
  3. Extracts SVG exports from discovered files
  4. Caches results for faster subsequent access
  5. Updates the viewer with the complete icon catalog

Ignored Directories

By default, the scanner ignores common directories:
**/.git
**/.github
**/.husky
**/.idea
**/.idx
**/.vscode*
**/build
**/coverage
**/dist
**/node_modules
**/out
You can customize ignored directories using the JT-View-Exports-SVG.ignoreDirectories configuration setting.

Usage

Running the Scan

There are multiple ways to trigger a workspace scan:
1

From Command Palette

  1. Open the Command Palette (Ctrl/Cmd + Shift + P)
  2. Type “View Exports SVG: Start Scanning”
  3. Press Enter
2

From Viewer Interface

If the viewer is open, look for the scan button in the toolbar (search icon)

Behavior

  • Opens a new viewer panel
  • Initializes the viewer interface
  • Begins scanning the workspace
  • Displays progress during the scan
  • Shows results when complete
  • Reuses the existing panel
  • Shows scanning progress
  • Updates the viewer with new results
  • Preserves viewer state when possible

Performance Considerations

Scanning large workspaces can take time. The extension caches results to improve subsequent performance.

Scan Optimization

  • Results are cached to avoid redundant scans
  • The lastScanDate configuration tracks when the last scan occurred
  • Use Clear Cache if you need to force a fresh scan

When to Scan

Consider running a scan when:
  • You’ve added new SVG icon files to your project
  • You’ve reorganized icon components
  • You want to ensure all icons are discoverable
  • Cache data seems outdated

Configuration

Customize scanning behavior with these settings:
SettingDescription
JT-View-Exports-SVG.ignoreDirectoriesArray of directory patterns to exclude from scanning
JT-View-Exports-SVG.assetsPathQuick-access paths to specific icon directories
JT-View-Exports-SVG.showNotExportedIconsWhether to include non-exported SVG components
JT-View-Exports-SVG.groupPatternsPatterns to organize scanned icons into groups
  • Show Menu - View exports from specific files
  • Clear Cache - Clear cached scan results for a fresh scan

Build docs developers (and LLMs) love