-
Notifications
You must be signed in to change notification settings - Fork 237
Closed
Labels
Description
When "prompt" isn't defined in the runspace the fallback to DefaultPrompt doesn't work because we aren't catching the CommandNotFoundException
PowerShellEditorServices/src/PowerShellEditorServices/Services/PowerShell/Host/PsesInternalHost.cs
Lines 662 to 664 in b433b0f
var command = new PSCommand().AddCommand("prompt"); | |
IReadOnlyList<string> results = InvokePSCommand<string>(command, PowerShellExecutionOptions.Default, cancellationToken); | |
string prompt = results.Count > 0 ? results[0] : DefaultPrompt; |