Vitals Extension Troubleshoot Guide
Current Status
bash
[] Extension built successfully
[] Package.json configuration fixed
[] Activation event set to "\*" (activates on startup)
[] Enhanced debugging added
[] Mock Prometheus server runningTesting Steps
1. Open Extension Development Window
bash
cd /d/ceie/
code --extensionDevelopmentPath=. --new-window2. Check Extension Activation
Look for popup message: "Vitals extension is now active!"
Open Developer Console:
Help→Toggle Developer Tools→ConsoleLook for logs:
bash🚀 Vitals extension activated ✅ Command "vitals.openDashboard" registered successfully
3. Test Command Palette
- Press
Ctrl+Shift+P(Windows) orCmd+Shift+P(Mac) - Type:
Open Vitals - Expected: Command should appear in the list
4. If Command Still Missing
Option A: Check Extension Host Console
- Open
Help→Toggle Developer Tools - Go to
Consoletab - Look for any error messages
- Check if extension activated properly
Option B: Reload Extension Host
- Press
Ctrl+Shift+P - Type:
Developer: Reload Window - Execute the command
- Check for activation message again
Option C: Check Extension List
- Go to Extensions panel (
Ctrl+Shift+X) - Search for "Vitals"
- Verify it shows as "Development Extension"
5. Manual Command Execution
If the command palette doesn't show the command, try:
- Press
Ctrl+Shift+P - Type:
>vitals.openDashboard - Press Enter
Common Issues & Solutions
Issue: Extension Not Activating
Symptoms: No popup message, no console logs Solutions:
- Check if
dist/extension.jsexists - Verify VS Code opened with
--extensionDevelopmentPath=. - Check for TypeScript compilation errors
Issue: Command Not Showing
Symptoms: Extension activates but command missing from palette Solutions:
- Reload the window (
Developer: Reload Window) - Check package.json syntax
- Verify command ID matches between package.json and extension.ts
Issue: Command Exists But Fails
Symptoms: Command appears but throws error when executed Solutions:
- Check webview bundle exists in
webview/build/ - Verify React components compile correctly
- Check browser console for JavaScript errors
Debug Information to Collect
Extension Host Console
bash
🚀 Vitals extension activated
✅ Command "vitals.openDashboard" registered successfully
📊 Opening Vitals... (when command executed)VS Code Output Panel
- Go to
View→Output - Select
Log (Extension Host)from dropdown - Look for Vitals related logs
Browser Console (for webview)
- Right-click in dashboard webview
- Select
Inspect Element - Check Console tab for React/JavaScript errors
Expected Results
- On VS Code startup: Popup "Vitals extension is now active!"
- In Command Palette: "Open Vitals" command visible
- When executed: Dashboard panel opens beside editor
- Dashboard content: Shows "Vitals" header
- Network activity: Requests to localhost:9090 for metrics
If All Else Fails
Try this minimal test:
- Open VS Code normally (not extension dev mode)
- Open Extensions panel
- Click "Install from VSIX..."
- Package the extension:
vsce package - Install the generated .vsix file
Next Steps
If the command still doesn't appear after following these steps, please share:
- Screenshot of Extension Host Console
- Contents of Output → Log (Extension Host)
- Any error messages in Developer Tools Console