From e6921b7423ab475dd80df53f352fe3608dc7c322 Mon Sep 17 00:00:00 2001 From: zhaojunxia Date: Thu, 29 Sep 2022 16:50:22 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=AE=E5=A4=8D=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E6=A3=80=E6=9F=A5=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhaojunxia --- napi_vs_plugin/src/extension.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/napi_vs_plugin/src/extension.js b/napi_vs_plugin/src/extension.js index 12e60e60..0b2c0942 100644 --- a/napi_vs_plugin/src/extension.js +++ b/napi_vs_plugin/src/extension.js @@ -155,7 +155,7 @@ function checkMode(name, genDir, mode, importIsCheck) { return; } if (mode == 0) { - if (name.indexOf(".") < 0 || !fs.lstatSync(name).isFile()) { + if (name.indexOf(".") < 0) { vscode.window.showErrorMessage("Please enter the correct file path!"); return; } -- Gitee