Skip to content

Commit 90007d0

Browse files
committed
Attach listeners before running
1 parent 85b744c commit 90007d0

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

src/extension/providers/JudgeViewProvider.ts

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -287,13 +287,6 @@ export default class extends BaseViewProvider<typeof ProviderMessageSchema, Webv
287287
return;
288288
}
289289

290-
testcase.process.run(
291-
runCommand,
292-
bypassLimits ? 0 : this._timeLimit,
293-
bypassLimits ? 0 : this._memoryLimit,
294-
cwd
295-
);
296-
297290
testcase.process
298291
.on("spawn", () => {
299292
if (token.isCancellationRequested) {
@@ -347,7 +340,13 @@ export default class extends BaseViewProvider<typeof ProviderMessageSchema, Webv
347340
});
348341

349342
this._saveFileData();
350-
});
343+
})
344+
.run(
345+
runCommand,
346+
bypassLimits ? 0 : this._timeLimit,
347+
bypassLimits ? 0 : this._memoryLimit,
348+
cwd
349+
);
351350
}
352351

353352
private async _launchInteractiveTestcase(

0 commit comments

Comments
 (0)