mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-14 01:25:37 -05:00
Adding progress indicator for autorest generation (#17371)
This commit is contained in:
@@ -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> {
|
||||
|
||||
Reference in New Issue
Block a user