Skip to content

Conversation

@MrRishabhJain
Copy link

No description provided.

Comment on lines +505 to +531
"command": "microsoft.powerplatform.pages.metadataDiff.triggerFlow",
"title": "Compare with Environment",
"category": "Power Pages Metadata Diff",
"icon": "$(cloud-download)"
},
{
"command": "microsoft.powerplatform.pages.metadataDiff.generateReport",
"title": "Generate HTML Report",
"category": "Power Pages Metadata Diff",
"icon": "$(markdown)"
},
{
"command": "microsoft.powerplatform.pages.metadataDiff.resync",
"title": "Re-sync",
"category": "Power Pages Metadata Diff",
"icon": "$(refresh)"
},
{
"command": "microsoft.powerplatform.pages.metadataDiff.clearView",
"title": "Clear View",
"category": "Power Pages Metadata Diff",
"icon": "$(clear-all)"
},
{
"command": "microsoft.powerplatform.pages.metadataDiff.exportReport",
"title": "Export Comparison View",
"category": "Power Pages Metadata Diff",
Copy link
Contributor

Choose a reason for hiding this comment

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

All of these should be localized.

}
});

vscode.commands.registerCommand("microsoft.powerplatform.pages.metadataDiff.triggerFlow", async () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we please refactor this file?

  1. When registering commands, you can register single methods instead of defining the logic inline.
  2. The logic itself can be broken into multiple reusable functions. A single function seems to be doing too much right now.


vscode.commands.registerCommand("microsoft.powerplatform.pages.actionsHub.siteDetails", showSiteDetails),

vscode.commands.registerCommand("microsoft.powerplatform.pages.actionsHub.compareWithLocal", compareWithLocal),
Copy link
Contributor

Choose a reason for hiding this comment

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

This should only be registered when metadata diff feature is enabled, right?

Rishabh Jain and others added 21 commits October 8, 2025 19:14
@amitjoshi438
Copy link
Contributor

MetadataDiffTreeDataProvider.ts‎ and src/client/power-pages/metadata-diff/MetadataDiffCommands.ts can be reviewed once for telemetry events capturing the tracking events and debugging events.

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.

4 participants