From 61ef8e2ae732cbdae971684bc91352d4d84d7425 Mon Sep 17 00:00:00 2001 From: Pepe Iborra Date: Tue, 1 Feb 2022 19:27:28 +0000 Subject: [PATCH] Add a test for #2673 --- ghcide/test/exe/Main.hs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/ghcide/test/exe/Main.hs b/ghcide/test/exe/Main.hs index 10c41bd11c..2df4a8073d 100644 --- a/ghcide/test/exe/Main.hs +++ b/ghcide/test/exe/Main.hs @@ -4653,6 +4653,15 @@ nonLocalCompletionTests = ] (Position 3 6) [], + testGroup "ordering" + [completionTest "qualified has priority" + ["module A where" + ,"import qualified Data.ByteString as BS" + ,"f = BS.read" + ] + (Position 2 10) + [("readFile", CiFunction, "readFile ${1:FilePath}", True, True, Nothing)] + ], testGroup "auto import snippets" [ completionCommandTest "show imports not in list - simple"