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

lsp: render json response as bool instead of int #1323

Merged
merged 1 commit into from
Jun 28, 2023
Merged

Conversation

V-FEXrt
Copy link
Contributor

@V-FEXrt V-FEXrt commented Jun 27, 2023

The lsp was using add() instead of add_bool() which renders as 0|1 instead of false|true. For most LSP clients this is fine since 0|1 is treated as false|true, but when the client is implemented in stricter languages this isn't acceptable as type(int) != type(bool) and the spec requires type(bool)

@V-FEXrt V-FEXrt changed the title Set bool instead of int lsp: render json response as bool instead of int Jun 27, 2023
@V-FEXrt V-FEXrt requested a review from JakeSiFive June 27, 2023 23:28
@V-FEXrt V-FEXrt merged commit 0fc04a0 into master Jun 28, 2023
@V-FEXrt V-FEXrt deleted the lsp-bad-response branch June 28, 2023 14: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.

2 participants