@microsoft/vscode-azext-utils
Advanced tools
Comparing version 0.4.2 to 0.4.3
@@ -21,3 +21,2 @@ "use strict"; | ||
const vscode_azureresources_api_1 = require("@microsoft/vscode-azureresources-api"); | ||
const GenericTreeItem_1 = require("../../../tree/GenericTreeItem"); | ||
const localize_1 = require("../../../localize"); | ||
@@ -65,6 +64,3 @@ /** | ||
if (children && children.length) { | ||
if (this.pickOptions.skipIfOne) { | ||
// don't skip if one if a command pick is present | ||
this.pickOptions.skipIfOne = !children.some(child => (0, GenericTreeItem_1.isGenericTreeItem)(child) || child instanceof GenericTreeItem_1.GenericTreeItem); | ||
} | ||
this.pickOptions.skipIfOne = lastPickedItemUnwrapped.autoSelectInTreeItemPicker; | ||
const customChild = yield this.getCustomChildren(wizardContext, lastPickedItemUnwrapped); | ||
@@ -71,0 +67,0 @@ const customPick = children.find((child) => { |
@@ -31,3 +31,3 @@ "use strict"; | ||
const picks = yield this.getPicks(wizardContext); | ||
if (picks.length === 1 && this.pickOptions.skipIfOne) { | ||
if (picks.length === 1 && this.pickOptions.skipIfOne && typeof picks[0].data !== 'function') { | ||
return picks[0].data; | ||
@@ -34,0 +34,0 @@ } |
@@ -46,3 +46,3 @@ "use strict"; | ||
contextValueFilter: childItemFilter, | ||
skipIfOne: false, | ||
skipIfOne: true, | ||
}) : | ||
@@ -49,0 +49,0 @@ new RecursiveQuickPickStep_1.RecursiveQuickPickStep(tdp, { |
{ | ||
"name": "@microsoft/vscode-azext-utils", | ||
"author": "Microsoft Corporation", | ||
"version": "0.4.2", | ||
"version": "0.4.3", | ||
"description": "Common UI tools for developing Azure extensions for VS Code", | ||
@@ -6,0 +6,0 @@ "tags": [ |
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
367076
7118