Skip to content
This repository was archived by the owner on Apr 24, 2021. It is now read-only.

Remove semicolon in module top level preview #28

Merged
merged 1 commit into from
Nov 23, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions src/rescript-editor-support/Hover.re
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,9 @@ let showModuleTopLevel =
/*** TODO pretty print module contents */
| SharedTypes.MType({decl}) =>
" " ++ (decl |> Shared.declToString(item.name.txt))
| Module(_) => " module " ++ item.name.txt ++ ";"
| Module(_) => " module " ++ item.name.txt
| MValue(typ) =>
" let "
++ item.name.txt
++ ": "
++ (typ |> Shared.typeToString) /* TODO indent */
++ ";"
" let " ++ item.name.txt ++ ": " ++ (typ |> Shared.typeToString) /* TODO indent */
}
)
|> String.concat("\n");
Expand Down