Skip to content

Avoid aking inlay record field hints for template haskell generated code #4656

@Eiko-Tokura

Description

@Eiko-Tokura

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions