Skip to content
This repository was archived by the owner on Oct 7, 2020. It is now read-only.

Use default config on missing configuration section #1802

Closed

Conversation

aufarg
Copy link

@aufarg aufarg commented Oct 2, 2020

Use default config on missing configuration section

On serving initialize request, the deserialization of HIE configuration
embedded in InitializeParam passed by client will result in an error if
during the deserialization process the server cannot find HIE specific
configuration key under initializationOptions.

This commit changes the initializationOptions deserialization to return
the default configuration if configuration key cannot be found under
initializationOptions. Here, setting the key with a value of null will
also be considered as part of not found condition to accommodate clients
that fills missing user options as null.

@aufarg aufarg force-pushed the return-default-on-empty-init-option branch 2 times, most recently from 4f794aa to 69c4244 Compare October 2, 2020 17:31
On serving initialize request, the deserialization of HIE configuration
embedded in InitializeParam passed by client will result in an error if
during the deserialization process the server cannot find HIE specific
configuration key under initializationOptions.

This commit changes the initializationOptions deserialization to return
the default configuration if configuration key cannot be found under
initializationOptions. Here, setting the key with a value of null will
also be considered as part of not found condition to accommodate clients
that fills missing user options as null.
@alanz
Copy link
Collaborator

alanz commented Oct 6, 2020

@aufarg This project is not actually active any more, so PRs will not be merged. I see you did do something on haskell-language-server too, which is the project superseding this one

@aufarg
Copy link
Author

aufarg commented Oct 7, 2020

@alanz Okay, I'll close the PR then. Thanks for telling me this.

@aufarg aufarg closed this Oct 7, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants