Skip to content

Commit 12db081

Browse files
authored
save first when trigger test command (LeetCode-OpenSource#22)
1 parent aa6bde1 commit 12db081

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
const filePath = activeText.document.uri.fsPath;
2327
const picks: Array<IQuickItemEx<string>> = [];

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy