Adding progress indicator for autorest generation (#17371)

This commit is contained in:
Benjin Dubishar
2021-10-15 23:42:57 -07:00
committed by GitHub
parent bb09e808a9
commit ecb7f9311a
2 changed files with 9 additions and 1 deletions

View File

@@ -914,7 +914,14 @@ export class ProjectsController {
}
public async generateAutorestFiles(specPath: string, newProjectFolder: string): Promise<string | undefined> {
return this.autorestHelper.generateAutorestFiles(specPath, newProjectFolder);
return vscode.window.withProgress(
{
location: vscode.ProgressLocation.Notification,
title: constants.generatingProjectFromAutorest(path.basename(specPath)),
cancellable: false
}, async (_progress, _token) => {
return this.autorestHelper.generateAutorestFiles(specPath, newProjectFolder);
});
}
public async openProjectInWorkspace(projectFilePath: string): Promise<void> {