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

Use appropriate output channel #22

Merged
merged 1 commit into from
Nov 21, 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
9 changes: 3 additions & 6 deletions src/rescript-editor-support/EditorSupportCommands.re
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,8 @@ let dumpLocations = (state, ~package, ~file, ~extra, ~selectPos, uri) => {
);
})
|> l;
Log.spamError := true;
Log.log(Json.stringify(locationsInfo));
Log.spamError := false;

print_endline(Json.stringify(locationsInfo));
};

let dump = files => {
Expand Down Expand Up @@ -223,9 +222,7 @@ let autocomplete = (~currentFile, ~full, ~package, ~pos, ~state) => {
})
|> l;

Log.spamError := true;
Log.log(Json.stringify(completions));
Log.spamError := false;
print_endline(Json.stringify(completions));
};

let complete = (~pathWithPos, ~currentFile) => {
Expand Down