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

Skip field when it is null/none. #41

Merged
merged 1 commit into from
Jan 9, 2018
Merged

Conversation

autozimu
Copy link
Collaborator

@autozimu autozimu commented Jan 7, 2018

There seems to be some discrepancy around field being ommited and null
value. And null fields are breaking at least some fragile language
servers.

There seems to be some discrepancy around field being ommited and null
value. And null fields are breaking at least some fragile language
servers.

- autozimu/LanguageClient-neovim#265
- jacobdufault/cquery#247
@Marwes
Copy link
Member

Marwes commented Jan 7, 2018

I thought I had read it to be equivalent in microsoft/language-server-protocol#87 but re-reading that now I seem to have misread it. We should perhaps mark every optional field in the spec with skip_serializing_if actually, just to be safe 🤔 .

I queried for more information in a related issue microsoft/language-server-protocol#355

@autozimu
Copy link
Collaborator Author

autozimu commented Jan 7, 2018 via email

@autozimu
Copy link
Collaborator Author

autozimu commented Jan 9, 2018

Can we merge this in at the moment?

The rest could be done in separate PR. Also, it would be really helpful to have the attribute applied globally instead of individual field.

@Marwes Marwes merged commit cead9ef into gluon-lang:master Jan 9, 2018
@Marwes
Copy link
Member

Marwes commented Jan 9, 2018

Published 0.24.0. @autozimu Would you like want merge rights/cargo publish rights? I think it might be nice to have someone else with access (also, I will be mostly unavailable this week in case you want something merged/published).

@autozimu
Copy link
Collaborator Author

autozimu commented Jan 9, 2018 via email

@Marwes
Copy link
Member

Marwes commented Jan 9, 2018

Done

@autozimu
Copy link
Collaborator Author

autozimu commented Jan 9, 2018

Thanks

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