(text: string)
| 65 | } |
| 66 | |
| 67 | private async copyToClipboard(text: string): Promise<void> { |
| 68 | try { |
| 69 | clipboard.writeText(text) |
| 70 | } catch (error) { |
| 71 | console.error('[System] 复制到剪贴板失败:', error) |
| 72 | throw error |
| 73 | } |
| 74 | } |
| 75 | |
| 76 | private async openTerminal(path: string): Promise<void> { |
| 77 | try { |