Skip to content

Commit

Permalink
show generate after loading api for the first time
Browse files Browse the repository at this point in the history
  • Loading branch information
thewahome committed Nov 25, 2024
1 parent e810655 commit 5ca9725
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,15 @@ export class SearchOrOpenApiDescriptionCommand extends Command {

if (config.descriptionPath) {
await openTreeViewWithProgress(() => this._openApiTreeProvider.setDescriptionUrl(config.descriptionPath!));
await vscode.window.showInformationMessage(vscode.l10n.t('You can now select the required endpoints from {0}', this._openApiTreeProvider.apiTitle!));

const generateAnswer = vscode.l10n.t("Generate");
const response = await vscode.window.showInformationMessage(
vscode.l10n.t('Click on Generate after selecting the paths in the API Explorer'),
generateAnswer
);
if (response === generateAnswer) {
await vscode.commands.executeCommand(`${treeViewId}.generateClient`);
}
}
}
}

0 comments on commit 5ca9725

Please sign in to comment.