Skip to content

Commit 7f56977

Browse files
committed
Don't suggest if nothing to change
1 parent a1ca4c9 commit 7f56977

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

plugins/hls-haddock-comments-plugin/src/Ide/Plugin/HaddockComments.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ runGenComments GenComments {..} mLocDecls mAnns range
6464
Just anns <- mAnns,
6565
[(locDecl, src, x)] <- [(locDecl, l, x) | locDecl@(L l (fromDecl -> Just x)) <- locDecls, inRange range l],
6666
annKeys <- collectKeys x,
67+
not $ null annKeys,
6768
and $ maybe False fresh . flip Map.lookup anns <$> annKeys,
6869
anns' <- foldr (Map.adjust updateAnn) anns annKeys,
6970
Just range' <- calcRange src range,

0 commit comments

Comments
 (0)