mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-17 01:25:36 -05:00
add feedback button, open report issue dialog (#15762)
This commit is contained in:
@@ -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')
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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');
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user