Adding lists support in text component (#17065)

* Adding lists support in text component

* Fixing get textType

* Code cleanup

* Combining values into value
This commit is contained in:
Aasim Khan
2021-09-14 12:43:14 -07:00
committed by GitHub
parent 32e6a24115
commit 95e82d53e6
10 changed files with 79 additions and 37 deletions

View File

@@ -1252,7 +1252,7 @@ function createAzureSubscriptionComponent(
}
subscriptionInputInfo.labelComponent = label;
context.fieldInfo.subFields!.push({
label: label.value!,
label: label.value! as string,
variableName: context.fieldInfo.subscriptionVariableName
});
context.onNewInputComponentCreated(context.fieldInfo.subscriptionVariableName || context.fieldInfo.label, {
@@ -1407,7 +1407,7 @@ function createAzureResourceGroupsComponent(
}
resourceGroupInputInfo.labelComponent = label;
context.fieldInfo.subFields!.push({
label: label.value!,
label: label.value! as string,
variableName: context.fieldInfo.resourceGroupVariableName
});
const rgValueChangedEmitter = new vscode.EventEmitter<void>();
@@ -1517,7 +1517,7 @@ async function processAzureLocationsField(context: AzureLocationsFieldContext):
context.fieldInfo.subFields = context.fieldInfo.subFields || [];
if (context.fieldInfo.locationVariableName) {
context.fieldInfo.subFields!.push({
label: label.value!,
label: label.value! as string,
variableName: context.fieldInfo.locationVariableName
});
context.onNewInputComponentCreated(context.fieldInfo.locationVariableName, locationInputInfo);