Dynamic Chat VSCode Extension
A lightweight VSCode extension that embeds the Dynamic chat interface directly in VSCode, providing easy access to AI-powered crash analysis and chat functionality.
Features
✨ Embedded Chat Interface - Access the Dynamic chat directly within VSCode
🎯 Easy Access - Open chat with a single command or sidebar button
💬 Full Chat Functionality - All Dynamic chat features available
🔗 Seamless Integration - Works alongside your development workflow
Installation
- Download the
.vsix file
- Install using VSCode:
code --install-extension crash-vscode-0.1.0.vsix
- Restart VSCode
Usage
Open Chat Panel
- Command Palette: Press
Ctrl+Shift+P (or Cmd+Shift+P on macOS) and search for "Open Dynamic Chat"
- Sidebar: Click the chat icon in the VSCode activity bar
- Keyboard Shortcut: Use the registered command
Chat Features
Once the chat panel is open, you can:
- Use
@mcp-4 to access crash analysis tools
- Ask questions about crash dumps
- Analyze system logs and traces
- Get AI-powered recommendations
Architecture
The extension consists of:
- extension.ts - Main extension entry point and command registration
- chatWebviewProvider.ts - Webview provider for embedding the Dynamic chat interface
- package.json - Extension manifest and configuration
Content Security Policy
The extension uses a strict Content Security Policy (CSP) that:
- Allows iframe embedding of
https://dynamic.artem-blagodarenko.workers.dev/
- Restricts script execution to signed nonces
- Prevents unauthorized resource loading
Requirements
- VSCode 1.60.0 or later
- Internet connection to access Dynamic chat service
Development
Setup
npm install
Compile
npm run compile
Watch Mode
npm run watch
Package
npm run package
Run Extension
Press F5 in VSCode to launch the extension in a new window.
Building the VSIX Package
npm run vscode:prepublish
npm run package
This will create a crash-vscode-0.1.0.vsix file that can be installed in VSCode.
Troubleshooting
Chat doesn't load
- Check your internet connection
- Verify the Dynamic service is accessible at
https://dynamic.artem-blagodarenko.workers.dev/
- Check the VSCode output panel for errors
Extension doesn't activate
- Ensure VSCode version is 1.60.0 or later
- Try restarting VSCode
- Check the extension is properly installed
License
MIT
Support
For issues or feature requests, please visit the project repository.