### Steps to reproduce  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.