You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Which version of GHC do you use and how did you install it?
8.10.7 from ghcup
Which LSP client (editor/plugin) do you use?
Code OSS from Arch repository
Which version of HLS do you use and how did you install it?
1.8.0.0 from ghcup
What's wrong?
I recently upgraded from HLS 1.6.* (I think) to 1.8.0.0 and now type signature code lenses are displayed for functions in instance declarations, which was not the case before. I would like to retain the former behavior of only showing type signature code lenses for standalone top-level declarations.
I looked at the settings and found haskell.plugin.ghcide-type-lenses.config.mode, which has three possible values always, exported, and diagnostics. The description for the diagnostics value reads "Follows error messages produced by GHC about missing signatures". This sounds to me like type signature code lenses would be displayed in exactly those places where GHC would give a -Wmissing-signatures warning. However, this seems to not be the case and I was in fact unable to find any situation where diagnostics and always produced a different result.
How do I prevent type signature code lenses from being shown in instance declarations?
What is the intended behavior of the diagnostics value?
If the intended behavior of diagnostics is something different than aligning type signature code lenses with -Wmissing-signatures, maybe an option that enables this sort of behavior would be useful?
The text was updated successfully, but these errors were encountered:
It a little confusing, it turns out code lens for instances belongs to hls-class-plugin. But due to haskell/vscode-haskell#686, you can't disable it in vscode until the next release for vscode-haskell.
It also possible write a config file in the project dir, but I can't find where it is documented...
Your environment
Which OS do you use?
ArchLinux
Which version of GHC do you use and how did you install it?
8.10.7 from ghcup
Which LSP client (editor/plugin) do you use?
Code OSS from Arch repository
Which version of HLS do you use and how did you install it?
1.8.0.0 from ghcup
What's wrong?
I recently upgraded from HLS 1.6.* (I think) to 1.8.0.0 and now type signature code lenses are displayed for functions in instance declarations, which was not the case before. I would like to retain the former behavior of only showing type signature code lenses for standalone top-level declarations.
I looked at the settings and found
haskell.plugin.ghcide-type-lenses.config.mode
, which has three possible valuesalways
,exported
, anddiagnostics
. The description for thediagnostics
value reads "Follows error messages produced by GHC about missing signatures". This sounds to me like type signature code lenses would be displayed in exactly those places where GHC would give a-Wmissing-signatures
warning. However, this seems to not be the case and I was in fact unable to find any situation wherediagnostics
andalways
produced a different result.diagnostics
value?diagnostics
is something different than aligning type signature code lenses with-Wmissing-signatures
, maybe an option that enables this sort of behavior would be useful?The text was updated successfully, but these errors were encountered: