We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5d38633 commit 2a79a4eCopy full SHA for 2a79a4e
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