From 4599454b6b3c1022a678dc0ad05d9a31319bb800 Mon Sep 17 00:00:00 2001 From: "sheche@microsoft.com" Date: Mon, 12 Mar 2018 18:21:14 +0800 Subject: [PATCH] save first when trigger test command --- src/commands/test.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/commands/test.ts b/src/commands/test.ts index 4ae2e190..21a24504 100644 --- a/src/commands/test.ts +++ b/src/commands/test.ts @@ -18,6 +18,10 @@ export async function testSolution(channel: vscode.OutputChannel): Promise vscode.window.showErrorMessage("Please open a LeetCode solution file first."); return; } + if (!activeText.document.save()) { + vscode.window.showWarningMessage("Please save the solution file first."); + return; + } const filePath = activeText.document.uri.fsPath; const picks: Array> = []; 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