@@ -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
@@ -287,7 +286,6 @@ mkModCompl label =
287
286
Nothing Nothing Nothing Nothing Nothing Nothing Nothing
288
287
Nothing Nothing Nothing Nothing Nothing Nothing
289
288
290
-
291
289
mkModuleFunctionImport :: T. Text -> T. Text -> CompletionItem
292
290
mkModuleFunctionImport moduleName label =
293
291
CompletionItem label (Just CiFunction ) Nothing (Just moduleName)
@@ -638,8 +636,7 @@ getCompletions plId ideOpts CC {allModNamesAsNS, anyQualCompls, unqualCompls, qu
638
636
funcs = HM. findWithDefault [] (T. pack moduleName) exportsMap
639
637
return (map (mkModuleFunctionImport (T. pack moduleName)) funcs)
640
638
| " import " `T.isPrefixOf` fullLine
641
- -> do
642
- return filtImportCompls
639
+ -> return filtImportCompls
643
640
-- we leave this condition here to avoid duplications and return empty list
644
641
-- since HLS implements this completion (#haskell-language-server/pull/662)
645
642
| " {-# language" `T.isPrefixOf` T. toLower fullLine
@@ -669,7 +666,6 @@ uniqueCompl x y =
669
666
then EQ
670
667
else compare (insertText x) (insertText y)
671
668
other -> other
672
-
673
669
-- ---------------------------------------------------------------------
674
670
-- helper functions for pragmas
675
671
-- ---------------------------------------------------------------------
0 commit comments