mirror of
https://github.com/andrepimenta/claude-code-chat.git
synced 2025-12-08 22:49:42 +00:00
- Add settings button to webview UI - Implement settings panel with WSL bridge configuration - Add real-time settings updates via VS Code configuration API - Support for WSL distro, node path, and claude path configuration - Improve user experience by eliminating manual config file editing
1.9 KiB
1.9 KiB
Settings Interface Test Plan
Overview
Added a settings interface to the Claude Code Chat webview that allows users to configure WSL settings.
Changes Made
1. UI Changes (ui.ts)
- Added a settings button (⚙️) in the header that's always visible
- Created a settings modal with WSL configuration options:
- Enable WSL Integration checkbox
- WSL Distribution input field
- Node.js Path in WSL input field
- Claude Path in WSL input field
- Added JavaScript functions:
toggleSettings()- Shows/hides the settings modalhideSettingsModal()- Hides the settings modalupdateSettings()- Sends settings changes to VS Code- Event listeners for modal interaction
2. Extension Changes (extension.ts)
- Added message handlers:
getSettings- Retrieves current settings from VS Code configurationupdateSettings- Updates VS Code configuration with new settings
- Added methods:
_sendCurrentSettings()- Sends current settings to webview_updateSettings()- Updates VS Code configuration
3. Configuration (package.json)
- Already has WSL configuration properties defined:
claudeCodeChat.wsl.enabledclaudeCodeChat.wsl.distroclaudeCodeChat.wsl.nodePathclaudeCodeChat.wsl.claudePath
Testing Steps
- Open VS Code with the extension
- Open Claude Code Chat (Ctrl+Shift+C)
- Click the settings button (⚙️) in the header
- Verify the settings modal appears
- Check that current WSL settings are loaded
- Toggle "Enable WSL Integration" and verify:
- WSL options show/hide accordingly
- Settings are saved when changed
- Modify WSL settings and verify they persist
- Close and reopen the settings to confirm values are saved
Features
- Settings button is always visible in the header
- Modal design matches the existing tools modal
- Real-time show/hide of WSL options based on enabled state
- Settings persist across sessions
- Success/error notifications when saving settings