Skip to content

Allow null or empty values for configuration #5467

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
Jul 21, 2020

Conversation

kjeremy
Copy link
Contributor

@kjeremy kjeremy commented Jul 20, 2020

Allow the client to respond to workspace/configuration with null values. This is allowed per the spec if the client doesn't know about the configuration we've requested.

This also protects against null or {} during initialize. I'm not sure if we want to interpret {} as "don't change anything" but I think that's a reasonable approach to take.

This should help with LSP clients working out of the box.

Fixes #5464

kjeremy added 2 commits July 20, 2020 17:42
This is allowed per the spec if the client doesn't know about the configuration
we've requested.
@matklad
Copy link
Member

matklad commented Jul 21, 2020

bors r+

@bors
Copy link
Contributor

bors bot commented Jul 21, 2020

@bors bors bot merged commit 818aeb8 into rust-lang:master Jul 21, 2020
@kjeremy kjeremy deleted the null-configuration branch July 21, 2020 12:14
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.

No diagnostics after the client responds to workspace/configuration
2 participants