add feedback button, open report issue dialog (#15762)

This commit is contained in:
brian-harris
2021-06-18 12:22:41 -07:00
committed by GitHub
parent aeda95bb70
commit d08182416b
6 changed files with 29 additions and 3 deletions

View File

@@ -33,6 +33,7 @@ export class IconPathHelper {
public static error: IconPath;
public static completingCutover: IconPath;
public static migrationService: IconPath;
public static sendFeedback: IconPath;
public static setExtensionContext(context: vscode.ExtensionContext) {
IconPathHelper.copy = {
@@ -123,5 +124,9 @@ export class IconPathHelper {
light: context.asAbsolutePath('images/migrationService.svg'),
dark: context.asAbsolutePath('images/migrationService.svg')
};
IconPathHelper.sendFeedback = {
light: context.asAbsolutePath('images/sendFeedback.svg'),
dark: context.asAbsolutePath('images/sendFeedback.svg')
};
}
}

View File

@@ -296,6 +296,7 @@ export function MIGRATION_INPROGRESS_WARNING(count: number) {
return localize('sql.migration.inprogress.warning.multiple', "{0} databases have warnings", count);
}
}
export const FEEDBACK_ISSUE_TITLE = localize('sql.migration.feedback.issue.title', "Feedback on the migration experience");
// Azure APIs
export const EASTUS2EUAP = localize('sql.migration.eastus2euap', 'East US 2 EUAP');

View File

@@ -56,7 +56,15 @@ class SQLMigration {
}),
azdata.tasks.registerTask('sqlmigration.start', async () => {
await this.launchMigrationWizard();
})
}),
azdata.tasks.registerTask('sqlmigration.sendfeedback', async () => {
const actionId = 'workbench.action.openIssueReporter';
const args = {
extensionId: 'microsoft.sql-migration',
issueTitle: loc.FEEDBACK_ISSUE_TITLE,
};
return await vscode.commands.executeCommand(actionId, args);
}),
];
this.context.subscriptions.push(...commandDisposables);