Partial Diff Extension
VSCode/Kiro extension to compare clipboard text with selected text in the editor.
Features
- 📋 Compare clipboard content with selected text
- 🎨 Syntax highlighting based on file type
- ⚡ Quick access via Command Palette or Context Menu
- 🛡️ Comprehensive error handling
Usage
Method 1: Command Palette
- Copy text to clipboard
- Select text in your editor
- Open Command Palette (Cmd+Shift+P / Ctrl+Shift+P)
- Search for "クリップボードと選択テキストを比較"
- Press Enter
- Copy text to clipboard
- Select text in your editor
- Right-click on the selection
- Click "クリップボードと選択テキストを比較"
Development
Setup
npm install
Build
npm run compile
Run Extension
Press F5 in VS Code to launch the Extension Development Host.
Testing
Run the automated verification:
node .kiro/specs/partial-diff-extension/verify-implementation.js
For manual testing, see .kiro/specs/partial-diff-extension/test-verification.md
Requirements
- VS Code 1.80.0 or higher
- Node.js for development
Implementation Status
✅ All core features implemented
✅ Error handling complete
✅ Command palette integration
✅ Context menu integration
✅ Syntax highlighting support
✅ Temporary file cleanup
Architecture
- DiffService: Manages temporary files and diff display
- Command Handler: Validates input and handles errors
- Extension Entry Point: Registers commands and manages lifecycle
Error Handling
The extension handles the following error cases:
- No active editor
- No text selected
- Empty clipboard
- File system errors
License
MIT
| |