Skip to content

Commit a1d2a38

Browse files
committed
Fire editor state change event after validation done, AB#1993719
1 parent 8138774 commit a1d2a38

File tree

1 file changed

+2
-0
lines changed
  • PluginsAndFeatures/azure-toolkit-for-intellij/azure-intellij-plugin-appservice/src/main/java/com/microsoft/azure/toolkit/intellij/legacy/function/runner/deploy

1 file changed

+2
-0
lines changed

PluginsAndFeatures/azure-toolkit-for-intellij/azure-intellij-plugin-appservice/src/main/java/com/microsoft/azure/toolkit/intellij/legacy/function/runner/deploy/FunctionDeploymentSettingEditor.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
import com.microsoft.azure.toolkit.intellij.legacy.function.runner.deploy.ui.FunctionDeploymentPanel;
1313
import com.microsoft.azure.toolkit.lib.common.form.AzureValidationInfo;
1414
import org.jetbrains.annotations.NotNull;
15+
import reactor.core.scheduler.Schedulers;
1516

1617
import java.util.Objects;
1718

@@ -33,6 +34,7 @@ protected void applyEditorTo(@NotNull FunctionDeployConfiguration conf) throws C
3334
.filter(i -> !i.isValid())
3435
.findAny().orElse(null);
3536
if (Objects.nonNull(error)) {
37+
mainPanel.validateAllInputsAsync().subscribeOn(Schedulers.boundedElastic()).subscribe(ignore -> this.fireEditorStateChanged());
3638
final String message = error.getType() == AzureValidationInfo.Type.PENDING ? "Validating..." : error.getMessage();
3739
throw new ConfigurationException(message);
3840
}

0 commit comments

Comments
 (0)