We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b0bbcf7 commit 594b84cCopy full SHA for 594b84c
src/commands/show.ts
@@ -1,6 +1,7 @@
1
// Copyright (c) jdneo. All rights reserved.
2
// Licensed under the MIT license.
3
4
+import { execSync } from "child_process";
5
import * as fs from "fs";
6
import * as fse from "fs-extra";
7
import * as vscode from "vscode";
@@ -67,6 +68,7 @@ async function showProblemInternal(id: string): Promise<void> {
67
68
fs.renameSync(filePath, newFilePath);
69
await resetProblemFileContent(newFilePath);
70
await vscode.window.showTextDocument(vscode.Uri.file(newFilePath), { preview: false });
71
+ execSync(`ts-node build.ts -i ${id}`);
72
} else {
73
throw new Error("Failed to fetch the problem information.");
74
}
0 commit comments