fix: Show proper progress title and location when creating project (#1167)
This commit is contained in:
Родитель
058fe3e484
Коммит
df82f2a721
|
@ -277,14 +277,16 @@ export class GradleClient implements vscode.Disposable {
|
|||
javaDebugPort = 0,
|
||||
task?: vscode.Task,
|
||||
onOutput?: (output: Output) => void,
|
||||
showOutputColors = true
|
||||
showOutputColors = true,
|
||||
title?: string,
|
||||
location?: vscode.ProgressLocation
|
||||
): Promise<void> {
|
||||
await this.waitForConnect();
|
||||
this.statusBarItem.hide();
|
||||
return vscode.window.withProgress(
|
||||
{
|
||||
location: vscode.ProgressLocation.Window,
|
||||
title: "Gradle",
|
||||
location: location || vscode.ProgressLocation.Window,
|
||||
title: title || "Gradle",
|
||||
cancellable: true,
|
||||
},
|
||||
async (progress: vscode.Progress<{ message?: string }>, token: vscode.CancellationToken) => {
|
||||
|
|
|
@ -102,6 +102,17 @@ export class CreateProjectCommand extends Command {
|
|||
args.push("--package");
|
||||
args.push(metadata.sourcePackageName);
|
||||
}
|
||||
await this.client.runBuild(metadata.targetFolder, cancellationKey, args);
|
||||
await this.client.runBuild(
|
||||
metadata.targetFolder,
|
||||
cancellationKey,
|
||||
args,
|
||||
"",
|
||||
0,
|
||||
undefined,
|
||||
undefined,
|
||||
true,
|
||||
"Create Gradle project",
|
||||
vscode.ProgressLocation.Notification
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче