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 723d56c commit b1eab33Copy full SHA for b1eab33
ghcide/src/Development/IDE/Spans/AtPoint.hs
@@ -57,7 +57,7 @@ import qualified Data.Text as T
57
58
import qualified Data.Array as A
59
import Data.Either
60
-import Data.List.Extra (nubOrd)
+import Data.List.Extra (dropEnd1, nubOrd)
61
62
63
import Control.Lens ((^.))
@@ -279,9 +279,14 @@ atPoint opts@IdeOptions{} shakeExtras@ShakeExtras{ withHieDb, hiedbWriter } har@
279
Left _moduleName -> Nothing) $ fromMaybe [] locationsWithIdentifier
280
281
prettyNames <- mapM (prettyName locationsMap) names
282
-
283
- pure (Just range, prettyNames ++ prettyTypes Nothing locationsMap)
+ pure (Just range, prettyNames ++ pTypes locationsMap)
284
where
+ pTypes :: M.Map Name Location -> [T.Text]
285
+ pTypes locationsMap =
286
+ case names of
287
+ [_singleName] -> dropEnd1 $ prettyTypes Nothing locationsMap
288
+ _ -> prettyTypes Nothing locationsMap
289
+
290
range :: Range
291
range = realSrcSpanToRange $ nodeSpan ast
292
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments