From a6959ad59ff2a64138282e509e8fb650e32f7496 Mon Sep 17 00:00:00 2001 From: AndreiSingeorzan <56542055+AndreiSingeorzan@users.noreply.github.com> Date: Tue, 16 Jul 2024 11:35:24 +0300 Subject: [PATCH] do not require same sync context for compilation (#331) --- src/UiPath.Workflow/Activities/DesignerHelperImpl.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/UiPath.Workflow/Activities/DesignerHelperImpl.cs b/src/UiPath.Workflow/Activities/DesignerHelperImpl.cs index 2562db56..a8edbb02 100644 --- a/src/UiPath.Workflow/Activities/DesignerHelperImpl.cs +++ b/src/UiPath.Workflow/Activities/DesignerHelperImpl.cs @@ -385,7 +385,7 @@ private async Task CreatePrecompiledExpressionAsync(Ty // execute compiler var compilation = Compiler.Compile(expressionText, isLocation, targetType ?? typeof(object), namespaces.ToList(), referencedAssemblies.ToList(), environment); - var diagnostics = await compilation.WithAnalyzers(_usedTypesAnalizerList).GetAllDiagnosticsAsync(); + var diagnostics = await compilation.WithAnalyzers(_usedTypesAnalizerList).GetAllDiagnosticsAsync().ConfigureAwait(false); if (diagnostics.Any(d => d.Severity == DiagnosticSeverity.Error)) {