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.scanningDisplay 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:- Searches the workspace for JavaScript and TypeScript files
- Respects ignore patterns from your configuration
- Extracts SVG exports from discovered files
- Caches results for faster subsequent access
- Updates the viewer with the complete icon catalog
Ignored Directories
By default, the scanner ignores common directories:Usage
Running the Scan
There are multiple ways to trigger a workspace scan:From Command Palette
- Open the Command Palette (Ctrl/Cmd + Shift + P)
- Type “View Exports SVG: Start Scanning”
- Press Enter
Behavior
When viewer is not open
When viewer is not open
- Opens a new viewer panel
- Initializes the viewer interface
- Begins scanning the workspace
- Displays progress during the scan
- Shows results when complete
When viewer is already open
When viewer is already open
- 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
lastScanDateconfiguration 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:| Setting | Description |
|---|---|
JT-View-Exports-SVG.ignoreDirectories | Array of directory patterns to exclude from scanning |
JT-View-Exports-SVG.assetsPath | Quick-access paths to specific icon directories |
JT-View-Exports-SVG.showNotExportedIcons | Whether to include non-exported SVG components |
JT-View-Exports-SVG.groupPatterns | Patterns to organize scanned icons into groups |
Related Commands
- Show Menu - View exports from specific files
- Clear Cache - Clear cached scan results for a fresh scan