Skip to content

Commit 594b84c

Browse files
committed
add ts-node build
1 parent b0bbcf7 commit 594b84c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/commands/show.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Copyright (c) jdneo. All rights reserved.
22
// Licensed under the MIT license.
33

4+
import { execSync } from "child_process";
45
import * as fs from "fs";
56
import * as fse from "fs-extra";
67
import * as vscode from "vscode";
@@ -67,6 +68,7 @@ async function showProblemInternal(id: string): Promise<void> {
6768
fs.renameSync(filePath, newFilePath);
6869
await resetProblemFileContent(newFilePath);
6970
await vscode.window.showTextDocument(vscode.Uri.file(newFilePath), { preview: false });
71+
execSync(`ts-node build.ts -i ${id}`);
7072
} else {
7173
throw new Error("Failed to fetch the problem information.");
7274
}

0 commit comments

Comments
 (0)