in src/eventSubscription/createWizard/TopicListStep.ts [16:38]
public async prompt(wizardContext: T): Promise<T> {
if (!wizardContext.topic) {
const client: EventGridManagementClient = createAzureClient(wizardContext, EventGridManagementClient);
const quickPickOptions: IAzureQuickPickOptions = { placeHolder: localize('topicPlaceHolder', 'Select a topic'), id: `TopicListStep/${wizardContext.subscriptionId}` };
wizardContext.topic = (await ext.ui.showQuickPick(this.getQuickPicks(client.topics.listBySubscription()), quickPickOptions)).data;
if (!wizardContext.topic) {
this.subWizard = new AzureWizard(
[
new TopicNameStep(),
new ResourceGroupListStep(),
new LocationListStep()
],
[
new TopicCreateStep()
],
wizardContext
);
}
}
return wizardContext;
}