Skip to content

Commit c42f6e2

Browse files
committed
rescript-editor-support now uses stdout
1 parent 1a58d0c commit c42f6e2

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed
0 Bytes
Binary file not shown.
-112 Bytes
Binary file not shown.

server/src/RescriptEditorSupport.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ export function runDumpCommand(
4242
msg.params.position.line +
4343
":" +
4444
msg.params.position.character;
45-
exec(command, { cwd: executable.cwd }, function (_error, _stdout, stderr) {
46-
let result = JSON.parse(stderr);
45+
exec(command, { cwd: executable.cwd }, function (_error, stdout, _stderr) {
46+
let result = JSON.parse(stdout);
4747
if (result && result[0]) {
4848
onResult(result[0]);
4949
} else {
@@ -77,9 +77,9 @@ export function runCompletionCommand(
7777
" " +
7878
tmpname;
7979

80-
exec(command, { cwd: executable.cwd }, function (_error, _stdout, stderr) {
80+
exec(command, { cwd: executable.cwd }, function (_error, stdout, _stderr) {
8181
tmpobj.removeCallback();
82-
let result = JSON.parse(stderr);
82+
let result = JSON.parse(stdout);
8383
if (result && result[0]) {
8484
onResult(result);
8585
} else {
-512 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)