Skip to content

Refactor TedApp.cs into partial classes#75

Merged
tig merged 2 commits into
developfrom
copilot/refactor-tedapp-for-maintainability
May 12, 2026
Merged

Refactor TedApp.cs into partial classes#75
tig merged 2 commits into
developfrom
copilot/refactor-tedapp-for-maintainability

Conversation

Copilot AI commented May 12, 2026

Copy link
Copy Markdown
Contributor

TedApp.cs was a single 566-line file mixing UI setup, file I/O, edit commands, and dialog logic. Split into partial classes following the established Editor.*.cs pattern:

  • TedApp.cs — Constructor, properties, status-bar helpers
  • TedApp.FileOperations.cs — File I/O hooks, New/Open/Save/Quit, dialog defaults, ConfirmSaveChanges
  • TedApp.EditCommands.cs — Copy/Cut/Paste/Undo/Redo, CreateEditMenuItems, find/replace dialog

Pure structural refactoring — no behavioral changes.

Copilot AI assigned Copilot and tig May 12, 2026
Copilot AI linked an issue May 12, 2026 that may be closed by this pull request
Split TedApp into three partial class files following the Editor.*.cs pattern:
- TedApp.cs — core constructor, properties, UI setup, status-bar helpers
- TedApp.EditCommands.cs — edit/clipboard commands, find/replace, menu items
- TedApp.FileOperations.cs — file I/O, dialog hooks, save/open/quit logic

Agent-Logs-Url: https://github.com/gui-cs/Text/sessions/95d81bb1-6f32-443f-a546-22288eb7ee70

Co-authored-by: tig <585482+tig@users.noreply.github.com>
Copilot AI changed the title [WIP] Refactor TedApp.cs for better maintainability Refactor TedApp.cs into partial classes May 12, 2026
Copilot finished work on behalf of tig May 12, 2026 12:05
Copilot AI requested a review from tig May 12, 2026 12:05
@tig
tig marked this pull request as ready for review May 12, 2026 12:08
@tig
tig merged commit b278caa into develop May 12, 2026
6 checks passed
@tig
tig deleted the copilot/refactor-tedapp-for-maintainability branch May 12, 2026 12:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Ted - Refactor TedApp.cs for maintainability

2 participants