-
-
Notifications
You must be signed in to change notification settings - Fork 391
Remove unused config in hls-class-plugin #3107
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
Remove unused config in hls-class-plugin #3107
Conversation
I'm slightly confused, I think we probably do want a config field for the lenses? Or are there currently two or something? |
Currently we have two config fields for lens,
Turns out |
Huh, do we generate a generic config option for any plugin that provides code lenses? That's pretty cool. |
Obviously, it does! Although I don't know where the code is due to time limitation. |
Dumb question: does the other config option work? Can we keep the test and use the generic config option? Or maybe we can trust it, I'm just suspicious. |
Both
It's better if we can(Just because there exists one already). I tried to find how to write the config, but failed as I said.
It's ok I think, all of our plugins don't have tests for main ability, we just write tests for custom config. |
Yes: haskell-language-server/hls-plugin-api/src/Ide/Plugin/ConfigUtils.hs Lines 84 to 94 in e55004a
So I think we no longer need the |
We really need to document how this stuff works... |
We should have a tech doc to land our tech details while developing hls, but not sure what should be included yet. |
While looking on #3105, I found type lens itself has a config filed, see
haskell-language-server generate-default-config
Remove a duplicate one, although I don't know where is the another one from now.