mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-09-24 13:03:30 +08:00
使用组件而非插件的形式重写 quickcommandUI
This commit is contained in:
11
src/plugins/monaco/types/quickcommand.api.d.ts
vendored
11
src/plugins/monaco/types/quickcommand.api.d.ts
vendored
@@ -174,8 +174,10 @@ interface quickcommandApi {
|
||||
|
||||
/**
|
||||
* 关掉现有等待操作按钮
|
||||
*
|
||||
* 正常会在退出运行结果界面后自动关闭,也可手动关闭
|
||||
*/
|
||||
closeWaitBtn(): void;
|
||||
closeWaitButton(): void;
|
||||
|
||||
/**
|
||||
* 监听用户按键,并执行回调函数
|
||||
@@ -192,6 +194,13 @@ interface quickcommandApi {
|
||||
*/
|
||||
listenKeydown(callback: (event) => void): void;
|
||||
|
||||
/**
|
||||
* 移除所有按键监听
|
||||
*
|
||||
* 正常会在退出运行结果界面后自动移除,也可手动移除
|
||||
*/
|
||||
removeListener(): void;
|
||||
|
||||
/**
|
||||
* 同步等待,会阻塞进程
|
||||
* @param ms 等待的毫秒数
|
||||
|
Reference in New Issue
Block a user