Skip to content

$psEditor.Window.ShowErrorMessage never returns #1106

Open
@SeeminglyScience

Description

@SeeminglyScience

Steps

  1. In the integrated console run $psEditor.Window.ShowErrorMessage('test')
  2. Do not click the X on the notifcation, instead click anywhere in the body and press escape.

Expected

The notification to be dismissed and the prompt to return.

Actual

The notification is dismissed, but the prompt never returns. ShowErrorMessage blocks the pipeline indefinitely.

Notes

The pipeline completes if the X is clicked instead. All that said, I don't think it should ever wait for completion. It feels real bad, especially from editor commands, to require dismissing the notification to free up the pipeline thread.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions