File tree 1 file changed +2
-11
lines changed
ghcide/src/Development/IDE/Plugin/Completions
1 file changed +2
-11
lines changed Original file line number Diff line number Diff line change @@ -770,17 +770,8 @@ stripPrefix :: T.Text -> T.Text
770
770
stripPrefix name = T. takeWhile (/= ' :' ) $ fromMaybe name $
771
771
getFirst $ foldMap (First . (`T.stripPrefix` name)) occNamePrefixes
772
772
773
- safeTyThingForRecord :: TyThing -> Maybe (T. Text , [T. Text ])
774
- safeTyThingForRecord (AnId _) = Nothing
775
- safeTyThingForRecord (AConLike dc) =
776
- let ctxStr = printOutputable . occName . conLikeName $ dc
777
- field_names = T. pack . unpackFS . flLabel <$> conLikeFieldLabels dc
778
- in
779
- Just (ctxStr, field_names)
780
- safeTyThingForRecord _ = Nothing
781
-
782
- mkRecordSnippetCompItem :: Uri -> Maybe T. Text -> T. Text -> [T. Text ] -> Provenance -> SpanDoc -> Maybe (LImportDecl GhcPs ) -> CompItem
783
- mkRecordSnippetCompItem uri parent ctxStr compl importedFrom docs imp = r
773
+ mkRecordSnippetCompItem :: Uri -> Maybe T. Text -> T. Text -> [T. Text ] -> Provenance -> Maybe (LImportDecl GhcPs ) -> CompItem
774
+ mkRecordSnippetCompItem uri parent ctxStr compl importedFrom imp = r
784
775
where
785
776
r = CI {
786
777
compKind = CiSnippet
You can’t perform that action at this time.
0 commit comments