Skip to content

Commit

Permalink
do not require same sync context for compilation (#331)
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreiSingeorzan authored Jul 16, 2024
1 parent f215c5e commit a6959ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/UiPath.Workflow/Activities/DesignerHelperImpl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ private async Task<CompiledExpressionResult> 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))
{
Expand Down

0 comments on commit a6959ad

Please sign in to comment.