From 0ff673c509fd8667e69bc737b2176471e9c9ccca Mon Sep 17 00:00:00 2001 From: fofolee Date: Wed, 18 May 2022 17:00:22 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E5=85=85runInTerminal?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/plugins/monaco/types/quickcommand.api.d.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/plugins/monaco/types/quickcommand.api.d.ts b/src/plugins/monaco/types/quickcommand.api.d.ts index c14dbbc..efaf5ba 100644 --- a/src/plugins/monaco/types/quickcommand.api.d.ts +++ b/src/plugins/monaco/types/quickcommand.api.d.ts @@ -323,6 +323,16 @@ interface quickcommandApi { */ runVbs(script: string): Promise; + /** + * 在终端运行,不支持 Linux + * + * @param command 要在终端运行的命令 + * ```js + * quickcommand.runInTerminal(`whoami`) + * ``` + */ + runInTerminal(command: string); + /** * 对应 utools.onPluginEnter 的 code type 和 payload *