@microsoft/vscode-azext-utils
Advanced tools
Comparing version 0.3.26 to 0.4.0
@@ -44,9 +44,13 @@ "use strict"; | ||
inputBox.busy = true; | ||
const message = yield latestValidation; | ||
if (!message) { | ||
const validateInputResult = yield latestValidation; | ||
const asyncValidationResult = options.asyncValidationTask ? yield options.asyncValidationTask(inputBox.value) : undefined; | ||
if (!validateInputResult && !asyncValidationResult) { | ||
resolve(inputBox.value); | ||
} | ||
else { | ||
inputBox.validationMessage = message; | ||
else if (validateInputResult) { | ||
inputBox.validationMessage = validateInputResult; | ||
} | ||
else if (asyncValidationResult) { | ||
inputBox.validationMessage = asyncValidationResult; | ||
} | ||
inputBox.enabled = true; | ||
@@ -53,0 +57,0 @@ inputBox.busy = false; |
@@ -73,4 +73,7 @@ "use strict"; | ||
this._stepHideStepCount = step.hideStepCount; | ||
step.propertiesBeforePrompt = Object.keys(this._context).filter(k => !(0, util_1.isNullOrUndefined)(this._context[k])); | ||
if (step.configureBeforePrompt) { | ||
yield step.configureBeforePrompt(this._context); | ||
} | ||
if (step.shouldPrompt(this._context)) { | ||
step.propertiesBeforePrompt = Object.keys(this._context).filter(k => !(0, util_1.isNullOrUndefined)(this._context[k])); | ||
const loadingQuickPick = this._showLoadingPrompt ? (0, showQuickPick_1.createQuickPick)(this._context, { | ||
@@ -77,0 +80,0 @@ loadingPlaceHolder: (0, localize_1.localize)('loading', 'Loading...') |
{ | ||
"name": "@microsoft/vscode-azext-utils", | ||
"author": "Microsoft Corporation", | ||
"version": "0.3.26", | ||
"version": "0.4.0", | ||
"description": "Common UI tools for developing Azure extensions for VS Code", | ||
@@ -6,0 +6,0 @@ "tags": [ |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
388698
7638