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

Commit d45f457

Browse files
authored
Merge pull request #22 from amiralies/fix-out-channel
Use appropriate output channel
2 parents 88126a2 + 866f007 commit d45f457

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

Diff for: src/rescript-editor-support/EditorSupportCommands.re

+3-6
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,8 @@ let dumpLocations = (state, ~package, ~file, ~extra, ~selectPos, uri) => {
100100
);
101101
})
102102
|> l;
103-
Log.spamError := true;
104-
Log.log(Json.stringify(locationsInfo));
105-
Log.spamError := false;
103+
104+
print_endline(Json.stringify(locationsInfo));
106105
};
107106

108107
let dump = files => {
@@ -223,9 +222,7 @@ let autocomplete = (~currentFile, ~full, ~package, ~pos, ~state) => {
223222
})
224223
|> l;
225224

226-
Log.spamError := true;
227-
Log.log(Json.stringify(completions));
228-
Log.spamError := false;
225+
print_endline(Json.stringify(completions));
229226
};
230227

231228
let complete = (~pathWithPos, ~currentFile) => {

0 commit comments

Comments
 (0)