File tree 1 file changed +5
-1
lines changed
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{..})) =
132
132
133
133
extractMinimalImports _ _ = return ([] , Nothing )
134
134
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
136
137
generateLens :: PluginId -> Uri -> Map SrcLoc (ImportDecl GhcRn ) -> LImportDecl GhcRn -> IO (Maybe CodeLens )
137
138
generateLens pId uri minImports (L src imp)
138
139
-- Explicit import list case
139
140
| ImportDecl {ideclHiding = Just (False ,_)} <- imp
140
141
= return Nothing
142
+ -- Qualified case
143
+ | ImportDecl {ideclQualified = True } <- imp
144
+ = return Nothing
141
145
-- No explicit import list
142
146
| RealSrcSpan l <- src
143
147
, Just explicit <- Map. lookup (srcSpanStart src) minImports
You can’t perform that action at this time.
0 commit comments