Skip to content
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

Do not send the 'body' field for DAP Initialized Event. #1345

Merged

Conversation

the-mikedavis
Copy link
Contributor

@the-mikedavis the-mikedavis commented Jul 2, 2022

Description

The body field is required on most DAP Events and optional on Terminated but
is actually not included in Initialized at all. Clients parsing the Events
strictly will think an Initialized Event with a body is malformed, so this
change drops the field entirely for Initialized.

https://microsoft.github.io/debug-adapter-protocol/specification#Events_Initialized

@the-mikedavis
Copy link
Contributor Author

As a meta note: the contributing guide mentions that there should always be an issue for a PR - is it ok to send small fix PRs like this without creating an issue first?

@the-mikedavis the-mikedavis force-pushed the md-dap-no-body-on-initialized branch from 4e4a864 to 550b495 Compare July 2, 2022 23:06
The body field is required on most DAP Events and optional on Terminated but
is actually not included in Initialized at all. Clients parsing the Events
strictly will think an Initialized Event with a body is malformed, so this
change drops the field entirely for Initialized.

https://microsoft.github.io/debug-adapter-protocol/specification#Events_Initialized
@the-mikedavis the-mikedavis force-pushed the md-dap-no-body-on-initialized branch from 550b495 to 2f0b7d4 Compare July 3, 2022 00:26
@robertoaloi
Copy link
Member

As a meta note: the contributing guide mentions that there should always be an issue for a PR - is it ok to send small fix PRs like this without creating an issue first?

It absolutely is. We should remove that requirement from the guidelines.

@robertoaloi robertoaloi merged commit d067267 into erlang-ls:main Jul 4, 2022
@the-mikedavis the-mikedavis deleted the md-dap-no-body-on-initialized branch July 4, 2022 13:12
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.

2 participants