From 2a1da6f8a65e73796c0cb3f9d6f884290e4b248a Mon Sep 17 00:00:00 2001 From: public_host Date: Tue, 20 Apr 2021 16:08:53 +0800 Subject: [PATCH] fix --- hasaki-gen-crud/hasaki-gen-crud.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hasaki-gen-crud/hasaki-gen-crud.js b/hasaki-gen-crud/hasaki-gen-crud.js index 8c5cdd9..a57db74 100644 --- a/hasaki-gen-crud/hasaki-gen-crud.js +++ b/hasaki-gen-crud/hasaki-gen-crud.js @@ -14,7 +14,8 @@ try { // }).catch(error => { // console.log("fix:", error); // }) - vscode.window.createTerminal("cmd.exe", "/c", `gopls fix -a -w ${path}`).show() + vscode.commands.executeCommand('editor.action.quickFix', vscode.Uri.file(path)); + // vscode.window.createTerminal("cmd.exe", "/c", `gopls fix -a -w ${path}`).show() }