Add fix for correct placement of import (#2100) (#2116)
* Remove HasSrcSpan import
* Amend extendImportHandler' function
* Amend old import tests
* Adapt tests for windows newline issue
Co-authored-by:
Javier Neira <atreyu.bbb@gmail.com>
Showing
- ghcide/src/Development/IDE/Plugin/CodeAction.hs 74 additions, 28 deletionsghcide/src/Development/IDE/Plugin/CodeAction.hs
- ghcide/src/Development/IDE/Plugin/Completions.hs 4 additions, 3 deletionsghcide/src/Development/IDE/Plugin/Completions.hs
- ghcide/test/data/import-placement/CommentAtTop.expected.hs 9 additions, 0 deletionsghcide/test/data/import-placement/CommentAtTop.expected.hs
- ghcide/test/data/import-placement/CommentAtTop.hs 8 additions, 0 deletionsghcide/test/data/import-placement/CommentAtTop.hs
- ghcide/test/data/import-placement/CommentAtTopMultipleComments.expected.hs 12 additions, 0 deletions...import-placement/CommentAtTopMultipleComments.expected.hs
- ghcide/test/data/import-placement/CommentAtTopMultipleComments.hs 11 additions, 0 deletions...est/data/import-placement/CommentAtTopMultipleComments.hs
- ghcide/test/data/import-placement/CommentCurlyBraceAtTop.expected.hs 9 additions, 0 deletions.../data/import-placement/CommentCurlyBraceAtTop.expected.hs
- ghcide/test/data/import-placement/CommentCurlyBraceAtTop.hs 8 additions, 0 deletionsghcide/test/data/import-placement/CommentCurlyBraceAtTop.hs
- ghcide/test/data/import-placement/DataAtTop.expected.hs 11 additions, 0 deletionsghcide/test/data/import-placement/DataAtTop.expected.hs
- ghcide/test/data/import-placement/DataAtTop.hs 10 additions, 0 deletionsghcide/test/data/import-placement/DataAtTop.hs
- ghcide/test/data/import-placement/ImportAtTop.expected.hs 14 additions, 0 deletionsghcide/test/data/import-placement/ImportAtTop.expected.hs
- ghcide/test/data/import-placement/ImportAtTop.hs 13 additions, 0 deletionsghcide/test/data/import-placement/ImportAtTop.hs
- ghcide/test/data/import-placement/LangPragmaModuleAtTop.expected.hs 8 additions, 0 deletions...t/data/import-placement/LangPragmaModuleAtTop.expected.hs
- ghcide/test/data/import-placement/LangPragmaModuleAtTop.hs 7 additions, 0 deletionsghcide/test/data/import-placement/LangPragmaModuleAtTop.hs
- ghcide/test/data/import-placement/LangPragmaModuleExplicitExports.expected.hs 10 additions, 0 deletions...ort-placement/LangPragmaModuleExplicitExports.expected.hs
- ghcide/test/data/import-placement/LangPragmaModuleExplicitExports.hs 9 additions, 0 deletions.../data/import-placement/LangPragmaModuleExplicitExports.hs
- ghcide/test/data/import-placement/LangPragmaModuleWithComment.expected.hs 11 additions, 0 deletions.../import-placement/LangPragmaModuleWithComment.expected.hs
- ghcide/test/data/import-placement/LangPragmaModuleWithComment.hs 10 additions, 0 deletions...test/data/import-placement/LangPragmaModuleWithComment.hs
- ghcide/test/data/import-placement/LanguagePragmaAtTop.expected.hs 6 additions, 0 deletions...est/data/import-placement/LanguagePragmaAtTop.expected.hs
- ghcide/test/data/import-placement/LanguagePragmaAtTop.hs 5 additions, 0 deletionsghcide/test/data/import-placement/LanguagePragmaAtTop.hs
Loading
Please register or sign in to comment