app.extensionManager.dialog.confirm({
title: string, // 对话框标题
message: string, // 显示的消息
type?: "default" | "overwrite" | "delete" | "dirtyClose" | "reinstall", // 对话框类型(可选)
itemList?: string[], // 要显示的项目列表(可选)
hint?: string // 显示的提示文本(可选)
}).then((result: boolean | null) => {
// result 为 true 表示确认,false 表示拒绝,null 表示取消
});