Skip to content

Commit c12a8f8

Browse files
Fire and forget evaluate (#1209)
1 parent 15a9afa commit c12a8f8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/PowerShellEditorServices/Services/PowerShellContext/Handlers/EvaluateHandler.cs

+5-5
Original file line numberDiff line numberDiff line change
@@ -21,19 +21,19 @@ public EvaluateHandler(ILoggerFactory factory, PowerShellContextService powerShe
2121
_powerShellContextService = powerShellContextService;
2222
}
2323

24-
public async Task<EvaluateResponseBody> Handle(EvaluateRequestArguments request, CancellationToken cancellationToken)
24+
public Task<EvaluateResponseBody> Handle(EvaluateRequestArguments request, CancellationToken cancellationToken)
2525
{
26-
await _powerShellContextService.ExecuteScriptStringAsync(
26+
_powerShellContextService.ExecuteScriptStringAsync(
2727
request.Expression,
2828
writeInputToHost: true,
2929
writeOutputToHost: true,
30-
addToHistory: true).ConfigureAwait(false);
30+
addToHistory: true);
3131

32-
return new EvaluateResponseBody
32+
return Task.FromResult(new EvaluateResponseBody
3333
{
3434
Result = "",
3535
VariablesReference = 0
36-
};
36+
});
3737
}
3838
}
3939
}

0 commit comments

Comments
 (0)