Skip to content

Make sure generate the 'OnIdle' event when there are other subscribers #899

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 18, 2019

Conversation

daxian-dbw
Copy link
Member

@daxian-dbw daxian-dbw commented Apr 18, 2019

Fix #827

Make sure we generate the 'OnIdle' event when there are other subscribers.

After the fix, 'OnIdle' event registered after other event subscribers works:

image

@daxian-dbw daxian-dbw requested a review from lzybkr April 18, 2019 21:19
Copy link
Contributor

@lzybkr lzybkr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I'm reading git blame correctly, this scenario never really worked - I'm surprised it took so long for someone to notice.

It took me a minute to understand why the break was causing a problem, so maybe you could add a comment to make it clear.

Alternatively (I'm not sure it would be easy) - you could add a test.

@daxian-dbw daxian-dbw merged commit e64acec into PowerShell:master Apr 18, 2019
@daxian-dbw daxian-dbw deleted the eventing branch April 18, 2019 23:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PowerShell.OnIdle seems not to fire in PSReadline 2.0 beta (repro)
2 participants