haskell/haskell-language-server

Avoid aking inlay record field hints for template haskell generated code

Eiko-Tokura opened this issue · 0 comments

Is your enhancement request related to a problem? Please describe.

In the newest hls version, we get explicit record fields inlay hint.
But somehow this also applies to spliced template haskell code, a very common situation is in something like this:

$(generateSomeDecs)

$(logError) $ "error text"

share [mkPersist sqlSettings, mkMigrate "migrateAll"] [persistLowerCase|
....
|]

In these senarios, the user cannot see the code or records as they are generated by template haskell splice, but there are a lot of hints produced that occupies considerable amount of screen, blocking the visual and makes editing code tricky.

Describe the solution you'd like

I would like to know, is there possibility to improve this plugin, so that it does not generate hints for template haskell generated code (i.e. splices, quasi-quotes).

Describe alternatives you've considered

Alternative would be just turn off this plugin.

Additional context

Image Image Image

Thank you very much for your attention, I deeply appreciate the work involved in this project