Plan for Removing Unused Components
This plan outlines the steps to remove unused components from the codebase. The removal is broken down into phases to ensure a safe and manageable process.
Phase 1: Remove AIEditStatus component
The AIEditStatus component and its associated stylesheet are not used anywhere in the application.
- Files to delete:
src/client/VZSidebar/AIChat/AIEditStatus.tsx
src/client/VZSidebar/AIChat/AIEditStatus.scss
Phase 2: Remove generateFilesContext.ts
The contents of src/client/AIAssist/generateFilesContext.ts are completely commented out, making it dead code.
- File to delete:
src/client/AIAssist/generateFilesContext.ts
Phase 3: Remove AIAssistCodeMirrorKeyMap
The AIAssistCodeMirrorKeyMap is not used. It is imported but commented out in getOrCreateEditor.tsx.
- File to delete:
src/client/AIAssist/AIAssistCodeMirrorKeyMap.ts
- File to modify:
src/client/AIAssist/index.ts: Remove the export of AIAssistCodeMirrorKeyMap.
Phase 4: Remove highlightWidgets.ts
The contents of src/client/CodeEditor/InteractiveWidgets/highlightWidgets.ts are completely commented out.
- File to delete:
src/client/CodeEditor/InteractiveWidgets/highlightWidgets.ts
Plan for Removing Unused Components
This plan outlines the steps to remove unused components from the codebase. The removal is broken down into phases to ensure a safe and manageable process.
Phase 1: Remove
AIEditStatuscomponentThe
AIEditStatuscomponent and its associated stylesheet are not used anywhere in the application.src/client/VZSidebar/AIChat/AIEditStatus.tsxsrc/client/VZSidebar/AIChat/AIEditStatus.scssPhase 2: Remove
generateFilesContext.tsThe contents of
src/client/AIAssist/generateFilesContext.tsare completely commented out, making it dead code.src/client/AIAssist/generateFilesContext.tsPhase 3: Remove
AIAssistCodeMirrorKeyMapThe
AIAssistCodeMirrorKeyMapis not used. It is imported but commented out ingetOrCreateEditor.tsx.src/client/AIAssist/AIAssistCodeMirrorKeyMap.tssrc/client/AIAssist/index.ts: Remove the export ofAIAssistCodeMirrorKeyMap.Phase 4: Remove
highlightWidgets.tsThe contents of
src/client/CodeEditor/InteractiveWidgets/highlightWidgets.tsare completely commented out.src/client/CodeEditor/InteractiveWidgets/highlightWidgets.ts