You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: resolve CSP violations preventing UI interaction in VS Code extension (#18)
Fixes#17 - File selection UI was completely non-functional due to Content Security Policy violations.
Changes:
- Removed all inline event handlers (onclick, onload, onerror) from HTML
- Replaced with delegated event listeners using addEventListener()
- Added defer attribute to script tags for proper load sequencing
- Updated verification script to use DOMContentLoaded instead of setTimeout
- Added CSP-compliant nonce to all inline scripts
The webview now complies with VS Code's strict CSP requirements, allowing
folder expansion/collapse and all UI interactions to work properly.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-authored-by: Claude <noreply@anthropic.com>
0 commit comments