MCPcopy Create free account
hub / github.com/esengine/esengine / openWithEditor

Method openWithEditor

packages/editor-app/src/api/tauri.ts:203–213  ·  view source on GitHub ↗

* 使用指定编辑器打开项目 * 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
    )

Source from the content-addressed store, hash-verified

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 * 打开行为树文件选择对话框

Callers 2

ContentBrowserFunction · 0.80
handleNodeDoubleClickFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected