mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-10-10 07:23:23 +08:00
window自动化添加资源管理器相关操作
This commit is contained in:
26
src/plugins/monaco/types/quickcomposer.d.ts
vendored
26
src/plugins/monaco/types/quickcomposer.d.ts
vendored
@@ -1721,6 +1721,32 @@ interface quickcomposerApi {
|
||||
): Promise<{ success: boolean; error?: string }>;
|
||||
};
|
||||
|
||||
/**
|
||||
* 资源管理器操作功能
|
||||
*/
|
||||
explorer: {
|
||||
/**
|
||||
* 获取所有打开的资源管理器窗口信息
|
||||
* @returns 资源管理器窗口信息数组
|
||||
*/
|
||||
list(): Promise<
|
||||
{
|
||||
handle: number; // 窗口句柄
|
||||
title: string; // 窗口标题
|
||||
path: string; // 当前路径
|
||||
class: string; // 窗口类名
|
||||
}[]
|
||||
>;
|
||||
|
||||
/**
|
||||
* 导航到指定路径
|
||||
* @param handle 窗口句柄
|
||||
* @param path 目标路径
|
||||
* @returns 是否成功
|
||||
*/
|
||||
navigate(handle: number, path: string): Promise<boolean>;
|
||||
};
|
||||
|
||||
/**
|
||||
* 进程管理功能
|
||||
*/
|
||||
|
Reference in New Issue
Block a user