Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit12db081

Browse files
authored
save first when trigger test command (LeetCode-OpenSource#22)
1 parentaa6bde1 commit12db081

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

‎src/commands/test.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ export async function testSolution(channel: vscode.OutputChannel): Promise<void>
1818
vscode.window.showErrorMessage("Please open a LeetCode solution file first.");
1919
return;
2020
}
21+
if(!activeText.document.save()){
22+
vscode.window.showWarningMessage("Please save the solution file first.");
23+
return;
24+
}
2125

2226
constfilePath=activeText.document.uri.fsPath;
2327
constpicks:Array<IQuickItemEx<string>>=[];

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp