File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -132,12 +132,16 @@ extractMinimalImports (Just (hsc)) (Just (tmrModule -> TypecheckedModule{..})) =
132132
133133extractMinimalImports _ _ = return ([] , Nothing )
134134
135- -- | Given an import declaration, generate a code lens unless it has an explicit import list
135+ -- | Given an import declaration, generate a code lens unless it has an
136+ -- explicit import list or it's qualified
136137generateLens :: PluginId -> Uri -> Map SrcLoc (ImportDecl GhcRn ) -> LImportDecl GhcRn -> IO (Maybe CodeLens )
137138generateLens pId uri minImports (L src imp)
138139 -- Explicit import list case
139140 | ImportDecl {ideclHiding = Just (False ,_)} <- imp
140141 = return Nothing
142+ -- Qualified case
143+ | ImportDecl {ideclQualified = True } <- imp
144+ = return Nothing
141145 -- No explicit import list
142146 | RealSrcSpan l <- src
143147 , Just explicit <- Map. lookup (srcSpanStart src) minImports
You can’t perform that action at this time.
0 commit comments