Skip to content

DRY some handler code and chenage menu name - #98

Merged
ErikEJ merged 2 commits into
mainfrom
dry
Oct 31, 2025
Merged

ErikEJ merged 2 commits into
mainfrom
dry

Conversation

@ErikEJ

@ErikEJ ErikEJ commented Oct 31, 2025

Copy link
Copy Markdown
Owner

fixes #96
fixes #97

Copilot AI review requested due to automatic review settings October 31, 2025 06:50

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR aims to reduce code duplication by extracting common handler functionality and update user-facing menu text. The changes consolidate three identical GetDatabaseInfoAsync methods into a shared helper class and improve the menu naming.

Key changes:

  • Created a new HandlerHelper class to eliminate duplicated database info retrieval logic
  • Updated menu button text from "Unpack" to "Script Database Model" for better clarity
  • Updated documentation to reflect the new menu naming

Reviewed Changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/Vsix/Vsix.csproj Added new HandlerHelper.cs file to the project compilation
src/Vsix/VSCommandTable.vsct Changed menu button text from "Unpack" to "Script Database Model"
src/Vsix/Handlers/HandlerHelper.cs New helper class containing shared GetDatabaseInfoAsync method
src/Vsix/Handlers/ErDiagramHandler.cs Replaced private method with call to shared HandlerHelper method
src/Vsix/Handlers/DabBuilderHandler.cs Replaced private method with call to shared HandlerHelper method
src/Vsix/Handlers/CompareHandler.cs Replaced private method with call to shared HandlerHelper method
README.md Updated documentation to reflect new menu naming and fixed grammar

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@ErikEJ
ErikEJ merged commit f7aefe2 into main Oct 31, 2025
1 check passed
@ErikEJ
ErikEJ deleted the dry branch April 15, 2026 07:40
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.

Rename Unpack to "Script Schema" DRY some code in Handlers

2 participants