8000
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 aa6bde1 commit 12db081Copy full SHA for 12db081
src/commands/test.ts
@@ -18,6 +18,10 @@ export async function testSolution(channel: vscode.OutputChannel): Promise<void>
18
vscode.window.showErrorMessage("Please open a LeetCode solution file first.");
19
return;
20
}
21
+ if (!activeText.document.save()) {
22
+ vscode.window.showWarningMessage("Please save the solution file first.");
23
+ return;
24
+ }
25
26
const filePath = activeText.document.uri.fsPath;
27
const picks: Array<IQuickItemEx<string>> = [];
0 commit comments