-
-
Notifications
You must be signed in to change notification settings - Fork 389
Docs: checkParents options #3156
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
Comments
It would be lovely if we could auto-generate some documentation about the options... there are too many for us to not make mistakes like this. |
My assumption is that the types don't lie and only these 3 values are possible. Who could provide information what the current state of truth is or provide some context? haskell-language-server/hls-plugin-api/src/Ide/Plugin/Config.hs Lines 36 to 43 in 310e6a4
|
Check on close modes were removed because they interacted badly with garbage collection. |
I suggest removing this information from the |
Okay, then it's an easy change: #3184 While I do think generation of docs would be appreciated, in this case #3183 wouldn't have helped, since the outdated information is not related to plugins. But in general coupling documentation and implementation - could also be used in error messages and on CLI - in a way that prevents outdated information like this would be very cool. |
Hey there, I was looking up what options are possible for the
checkParents
configuration, and there seems to be a mismatch in several places. Maybe we can find out what is correct and adapt all places mentioned.Default config
Output of
haskell-language-server-wrapper generate-default-config
is"checkParents": "CheckOnSave"
Documentation
CheckOnSave
CheckOnSaveAndClose
GHCIDE README
CheckOnSave
butCheckOnClose
andCheckOnSaveAndClose
| ,
https://github.com/haskell/haskell-language-server/blob/0c5a317560c4ee7257ddf03de117868cb7a056c2/ghcide/README.md#configuration
Types
The
CheckParents
type only seems to haveCheckOnSave
and is also used as Aeson instance.haskell-language-server/hls-plugin-api/src/Ide/Plugin/Config.hs
Lines 36 to 43 in 310e6a4
Your environment
The text was updated successfully, but these errors were encountered: