Skip to content

Improve Autocompletion of pragmas within instance declarations #3356

Open
@fendor

Description

@fendor

Take this for example:
image

The completion only occurs if it happens between two {-# #-}, and if I select the completion, this is the result:
image

This is invalid code. Would be better if we did not introduce the second #-}.

In LANGUAGE pragmas at the very beginning of a file, this does not happen, so I presume this requires just a little bit of fine-tuning of the existing code and adding a test-case.

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