Skip to content

Commit 488f23d

Browse files
committed
Fixed incorrect definition of mkRecordSnippetCompItem introduced when rebasing.
1 parent bbd73da commit 488f23d

File tree

1 file changed

+2
-11
lines changed
  • ghcide/src/Development/IDE/Plugin/Completions

1 file changed

+2
-11
lines changed

ghcide/src/Development/IDE/Plugin/Completions/Logic.hs

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -770,17 +770,8 @@ stripPrefix :: T.Text -> T.Text
770770
stripPrefix name = T.takeWhile (/=':') $ fromMaybe name $
771771
getFirst $ foldMap (First . (`T.stripPrefix` name)) occNamePrefixes
772772

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
784775
where
785776
r = CI {
786777
compKind = CiSnippet

0 commit comments

Comments
 (0)