mirror of
https://github.com/haskell/ghcide.git
synced 2024-11-22 19:14:09 +03:00
Strip prefixes from labels (#960)
* Strip prefixes from labels * Remove redundant parens
This commit is contained in:
parent
c617c9bd73
commit
36c182cbc4
@ -191,7 +191,7 @@ mkNameCompItem origName origMod thingType isInfix docs !imp = CI{..}
|
|||||||
insertText = case isInfix of
|
insertText = case isInfix of
|
||||||
Nothing -> case getArgText <$> thingType of
|
Nothing -> case getArgText <$> thingType of
|
||||||
Nothing -> label
|
Nothing -> label
|
||||||
Just argText -> label <> " " <> argText
|
Just argText -> stripPrefix label <> " " <> argText
|
||||||
Just LeftSide -> label <> "`"
|
Just LeftSide -> label <> "`"
|
||||||
|
|
||||||
Just Surrounded -> label
|
Just Surrounded -> label
|
||||||
|
Loading…
Reference in New Issue
Block a user