Skip to content

Commit

Permalink
Sort import suggestions (haskell/ghcide#793)
Browse files Browse the repository at this point in the history
  • Loading branch information
pepeiborra authored Sep 13, 2020
1 parent 1ce427a commit e8114b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ghcide/src/Development/IDE/Plugin/CodeAction.hs
Original file line number Diff line number Diff line change
Expand Up @@ -891,7 +891,7 @@ suggestNewImport packageExportsMap ParsedModule {pm_parsed_source = L _ HsModule
, extendImportSuggestions <- matchRegexUnifySpaces msg
"Perhaps you want to add ‘[^’]*’ to the import list in the import of ‘([^’]*)’"
= [(imp, [TextEdit (Range insertPos insertPos) (imp <> "\n")])
| imp <- constructNewImportSuggestions packageExportsMap name extendImportSuggestions
| imp <- sort $ constructNewImportSuggestions packageExportsMap name extendImportSuggestions
]
suggestNewImport _ _ _ = []

Expand Down

0 comments on commit e8114b6

Please sign in to comment.