Skip to content

Fix notification bug where null parameters caused type error #120

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 1 commit into from
May 9, 2025

Conversation

gspencergoog
Copy link
Contributor

This fixes a bug in notification handling where if the parameters were left off, as in:

{"jsonrpc":"2.0","method":"notifications/initialized"}

instead of:

{"jsonrpc":"2.0","method":"notifications/initialized", "params": {}}

A type error would get silently ignored and the notification would never be received.

Copy link

github-actions bot commented May 9, 2025

PR Health

Changelog Entry ✔️
Package Changed Files

Changes to files need to be accounted for in their respective changelogs.

@gspencergoog gspencergoog force-pushed the fix_notification_bug branch from a880676 to d02e6e0 Compare May 9, 2025 18:52
Copy link
Contributor

@jakemac53 jakemac53 left a comment

Choose a reason for hiding this comment

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

thanks!

@jakemac53
Copy link
Contributor

retrying the jobs, there is one test that has gotten very flaky for some reason 😮‍💨

@jakemac53 jakemac53 merged commit 9c7b700 into dart-lang:main May 9, 2025
15 of 17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants