Title and steps (#49340)

This commit is contained in:
Christof Marti
2018-06-15 15:46:57 +02:00
parent 56980850c5
commit 3b4fb7d2fb
5 changed files with 114 additions and 4 deletions

View File

@@ -211,6 +211,9 @@ class ExtHostQuickInput implements QuickInput {
private static _nextId = 1;
_id = ExtHostQuickPick._nextId++;
private _title: string;
private _steps: number;
private _totalSteps: number;
private _visible = false;
private _enabled = true;
private _busy = false;
@@ -237,6 +240,33 @@ class ExtHostQuickInput implements QuickInput {
constructor(protected _proxy: MainThreadQuickOpenShape, protected _extensionId: string, private _onDidDispose: () => void) {
}
get title() {
return this._title;
}
set title(title: string) {
this._title = title;
this.update({ title });
}
get step() {
return this._steps;
}
set step(step: number) {
this._steps = step;
this.update({ step });
}
get totalSteps() {
return this._totalSteps;
}
set totalSteps(totalSteps: number) {
this._totalSteps = totalSteps;
this.update({ totalSteps });
}
get enabled() {
return this._enabled;
}