JT-View-Exports-SVG.clearCache command removes all cached data from the extension, forcing a fresh analysis the next time you scan for or view SVG icon exports.
Command Details
Command ID
JT-View-Exports-SVG.clearCacheDisplay Title
Clear Cache
Category
View Exports SVG
$(trash) (trash/delete icon)
Availability
This command is available when the View Exports SVG webview panel is active.When condition:
activeWebviewPanelId == 'JT-View-Exports-SVG'Overview
The extension caches scan results and processed icon data to improve performance. However, there are times when you need to clear this cache to ensure you’re seeing current data.What Gets Cleared
When you clear the cache, the extension removes:- Workspace scan results - Cached list of files containing SVG exports
- Processed icon data - Extracted SVG component information
- File analysis results - Cached AST parsing and export detection
- Recently accessed icons - May clear recent icon history
- Temporary data - Any other cached metadata
Usage
From the Editor Title Bar
When the View Exports SVG panel is active:From Command Palette
Behavior
Immediate Effects
Immediate Effects
- All cached data is removed from storage
- Success notification is displayed
- If the viewer is open, it automatically reloads
- Next scan will be a fresh analysis
After Clearing
After Clearing
- First scan after clearing may take longer
- All files will be re-analyzed from scratch
- Fresh icon data will be extracted
- New cache will be built as you use the extension
When to Clear Cache
Files Changed
You’ve modified icon files but changes aren’t reflected in the viewer
Outdated Results
The viewer shows old or stale icon information
Missing Icons
New icon files aren’t appearing in scan results
Corrupted Cache
The extension is behaving unexpectedly or showing errors
Specific Scenarios
Button Placement
The clear cache button appears in the editor title bar at:- Navigation group position 3 (
navigation@3) - Located after the DevTools toggle button
- Always visible when the viewer panel is active
Performance Impact
Cache ManagementThe extension automatically manages cache to balance performance and freshness. Clearing cache is typically only needed when you suspect stale data.
Cache Rebuilding
After clearing cache:- First scan will take longer as all files are re-analyzed
- Subsequent operations will be faster as new cache is built
- Memory usage may temporarily increase during rebuilding
Configuration
The extension tracks when scans occur:settings.json
This is a read-only setting that’s automatically updated. Clearing cache may reset this value.