revert: language-specific import management experiment

This reverts commit f044f3ba75.
This commit is contained in:
can1357
2026-04-04 21:35:39 +02:00
parent db995107af
commit 511fddd8de
20 changed files with 47 additions and 4176 deletions
-13
View File
@@ -4,16 +4,6 @@
### Added
- Added `edit.manageImports` setting to enable/disable post-edit import and include management
- Added import/include management for TypeScript, JavaScript, Python, Rust, Go, and C/C++ in edit operations
- Added `imports` parameter to patch, hashline, and replace edit operations to declare imports/includes needed after code changes
- Added `ImportSpec` type to specify structured import requests with support for named imports, default imports, namespace imports, aliases, and system includes
- Added comprehensive import handler modules for each supported language with deduplication and grouping logic
- Added `edit.manageImports` setting to enable/disable post-edit import and include management
- Added import/include management for TypeScript, JavaScript, Python, Rust, Go, and C/C++ in edit operations
- Added `imports` parameter to patch, hashline, and replace edit operations to declare imports/includes needed after code changes
- Added `ImportSpec` type to specify structured import requests with support for named imports, default imports, namespace imports, aliases, and system includes
- Added comprehensive import handler modules for each supported language with deduplication and grouping logic
- Added `onExternalEditor` callback to extension UI dialog options for handling external editor shortcut in select dialogs
- Added external editor shortcut support in plan review selector, allowing users to open and edit the plan in their configured editor
- Added `matchesAppExternalEditor` keybinding matcher to detect external editor shortcut (Ctrl+G or configured binding)
@@ -24,9 +14,6 @@
### Changed
- Updated edit tool prompts to document import management feature when enabled
- Modified edit tool schemas to conditionally include `imports` parameter based on `edit.manageImports` setting
- Enhanced patch, hashline, and replace tool documentation with import management examples and guidance
- Updated hook editor and hook selector components to use `matchesAppExternalEditor` matcher for consistent external editor keybinding detection
- Modified plan review flow to read the latest plan content from disk before approval, allowing changes made in external editor to be reflected
- Enhanced plan review help text to dynamically display the configured external editor keybinding