-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathOpenLoadingViewStep.ts
More file actions
22 lines (19 loc) · 1.06 KB
/
OpenLoadingViewStep.ts
File metadata and controls
22 lines (19 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.md in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import { AzureWizardPromptStep, type IActionContext } from "@microsoft/vscode-azext-utils";
import * as vscode from 'vscode';
import { localize } from "../utils/localize";
import { LoadingViewController } from "./LoadingViewController";
import { SharedState } from "./OpenConfirmationViewStep";
export class OpenLoadingViewStep<T extends IActionContext> extends AzureWizardPromptStep<T> {
public async prompt(): Promise<void> {
const loadingView = new LoadingViewController({ title: localize('loadingViewTitle', 'Loading...') });
loadingView.revealToForeground(vscode.ViewColumn.Active);
SharedState.currentPanel = loadingView.panel;
}
public shouldPrompt(): boolean {
return true;
}
}