From a7303727f3917f73cc8fdad377d76f601d466149 Mon Sep 17 00:00:00 2001 From: liangyuan Date: Fri, 17 Jun 2022 15:33:09 +0800 Subject: [PATCH] repare vscode plugin default dir Signed-off-by: gaojianming --- napi_vs_plugin/src/gen/tools/VsPluginTool.js | 2 +- napi_vs_plugin/src/vs_plugin_view.html | 183 +++++++++++-------- 2 files changed, 104 insertions(+), 81 deletions(-) diff --git a/napi_vs_plugin/src/gen/tools/VsPluginTool.js b/napi_vs_plugin/src/gen/tools/VsPluginTool.js index 9898f174..c00a6a71 100644 --- a/napi_vs_plugin/src/gen/tools/VsPluginTool.js +++ b/napi_vs_plugin/src/gen/tools/VsPluginTool.js @@ -13,7 +13,7 @@ * limitations under the License. */ const os = require('os'); -const tsc = require("../../../node_modules/typescript"); +const tsc = require("../../node_modules/typescript"); const fs = require('fs'); let vscode = null; try { diff --git a/napi_vs_plugin/src/vs_plugin_view.html b/napi_vs_plugin/src/vs_plugin_view.html index 356051d8..bf47546d 100644 --- a/napi_vs_plugin/src/vs_plugin_view.html +++ b/napi_vs_plugin/src/vs_plugin_view.html @@ -1,84 +1,107 @@ - - - - - - Napi - - - - - -
- 选择方式: - .d.ts文件(多个文件之间用,号分割) - 文件夹 -
-
-
- 选择接口文件: -
- -
- 生成框架路径: -
- -
- 编译脚本路径: -
-
- - - - - -
- - - \ No newline at end of file + document.getElementById("genFile").value = dir; + document.getElementById("buildFile").value = dir; + } + +
+ 选择方式: + .d.ts文件(多个文件之间用,号分割) + 文件夹 +
+
+
+ 选择接口文件: +
+ +
+ 生成框架路径: +
+ +
+ 编译脚本路径: +
+
+ + + + + +
+ + + \ No newline at end of file -- Gitee