* 使用指定编辑器打开项目 * Open project with specified editor * * @param projectPath 项目文件夹路径 | Project folder path * @param editorCommand 编辑器命令(如 "code", "cursor")| Editor command * @param filePath 可选的要打开的文件路径 | Optional file path to open
(
projectPath: string,
editorCommand: string,
filePath?: string
)
| 201 | * @param filePath 可选的要打开的文件路径 | Optional file path to open |
| 202 | */ |
| 203 | static async openWithEditor( |
| 204 | projectPath: string, |
| 205 | editorCommand: string, |
| 206 | filePath?: string |
| 207 | ): Promise<void> { |
| 208 | await invoke('open_with_editor', { |
| 209 | projectPath, |
| 210 | editorCommand, |
| 211 | filePath: filePath || null |
| 212 | }); |
| 213 | } |
| 214 | |
| 215 | /** |
| 216 | * 打开行为树文件选择对话框 |
no outgoing calls
no test coverage detected