Skip to content

Extension pragma inserted below ghc options pragma (or shebang) no matter where it is in file #2364

Closed
@eddiemundo

Description

@eddiemundo

Steps to reproduce

extension-pragma-in-wrong-place

  1. Have a ghc options pragma (or shebang) in the middle of the file somewhere. Both cases seem to compile fine...
  2. Disable an extension that the file needs.
  3. Use a code action to insert the extension back in.

Expected behaviour

The extension should be put after the last pragma at the top of the file somewhere before the module declaration.

Actual behaviour

The extension is inserted after the ghc options pragma (or shebang) in the middle of the file.

Working on a fix for this so that my fix for something else can work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    component: hls-pragmas-plugintype: bugSomething isn't right: doesn't work as intended, documentation is missing/outdated, etc..

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions