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

Fix issue where type variables are printed with global renaming when … #39

Merged
merged 1 commit into from
Dec 10, 2020
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions Changes.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
## master
- Fix issue where type variables are printed with global renaming when hovering or autocompleting a module (see https://github.com/rescript-lang/rescript-editor-support/issues/38).

## Release 1.0.1 of rescript-vscode
This [commit](https://github.com/rescript-lang/rescript-editor-support/commit/232ad609766c415048750c5cc828973a9995f382) is vendored in [rescript-vscode 1.0.1](https://github.com/rescript-lang/rescript-vscode/releases/tag/1.0.1).
Expand Down
2 changes: 2 additions & 0 deletions src/rescript-editor-support/PrintType.re
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
let printExpr = typ => {
Printtyp.reset_names();
Res_doc.toString(
~width=60,
Res_outcome_printer.printOutTypeDoc(Printtyp.tree_of_typexp(false, typ)),
);
};

let printDecl = (~recStatus, name, decl) => {
Printtyp.reset_names();
Res_doc.toString(
~width=60,
Res_outcome_printer.printOutSigItemDoc(
Expand Down