We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e27c1ed commit 8f68b90Copy full SHA for 8f68b90
ghcide/src/Development/IDE/Plugin/Completions/Logic.hs
@@ -20,7 +20,6 @@ import Data.List.Extra as List hiding
20
import qualified Data.Map as Map
21
22
import Data.Maybe (fromMaybe, isJust,
23
- isNothing,
24
listToMaybe,
25
mapMaybe)
26
import qualified Data.Text as T
@@ -178,7 +177,12 @@ mkCompl
178
177
{_label = label,
179
_kind = kind,
180
_tags = Nothing,
181
- _detail = (colon <>) <$> typeText,
+ _detail =
+ case (typeText, provenance) of
182
+ (Just t,_) -> Just $ colon <> t
183
+ (_, ImportedFrom mod) -> Just $ "from " <> mod
184
+ (_, DefinedIn mod) -> Just $ "from " <> mod
185
+ _ -> Nothing,
186
_documentation = documentation,
187
_deprecated = Nothing,
188
_preselect = Nothing,
0 commit comments