@@ -55,7 +55,7 @@ import Development.IDE.Spans.LocalBindings
55
55
import Development.IDE.Types.Exports
56
56
import Development.IDE.Types.HscEnvEq
57
57
import Development.IDE.Types.Options
58
- import GhcPlugins (flLabel , unpackFS , lookupWithDefaultUFM )
58
+ import GhcPlugins (flLabel , unpackFS )
59
59
import Ide.PluginUtils (mkLspCommand )
60
60
import Ide.Types (CommandId (.. ),
61
61
PluginId )
@@ -65,7 +65,6 @@ import qualified Language.LSP.VFS as VFS
65
65
import Outputable (Outputable )
66
66
import TyCoRep
67
67
68
-
69
68
-- From haskell-ide-engine/hie-plugin-api/Haskell/Ide/Engine/Context.hs
70
69
71
70
-- | A context of a declaration in the program
@@ -638,8 +637,7 @@ getCompletions plId ideOpts CC {allModNamesAsNS, anyQualCompls, unqualCompls, qu
638
637
funcs = HM. findWithDefault [] (T. pack moduleName) exportsMap
639
638
return (map (mkModuleFunctionImport (T. pack moduleName)) funcs)
640
639
| " import " `T.isPrefixOf` fullLine
641
- -> do
642
- return filtImportCompls
640
+ -> return filtImportCompls
643
641
-- we leave this condition here to avoid duplications and return empty list
644
642
-- since HLS implements this completion (#haskell-language-server/pull/662)
645
643
| " {-# language" `T.isPrefixOf` T. toLower fullLine
@@ -669,7 +667,6 @@ uniqueCompl x y =
669
667
then EQ
670
668
else compare (insertText x) (insertText y)
671
669
other -> other
672
-
673
670
-- ---------------------------------------------------------------------
674
671
-- helper functions for pragmas
675
672
-- ---------------------------------------------------------------------
@@ -830,3 +827,4 @@ getImportQual :: LImportDecl GhcPs -> Maybe T.Text
830
827
getImportQual (L _ imp)
831
828
| isQualifiedImport imp = Just $ T. pack $ moduleNameString $ maybe (unLoc $ ideclName imp) unLoc (ideclAs imp)
832
829
| otherwise = Nothing
830
+
0 commit comments