(name: string, content: string, callback: (filePath: string) => Promise<void>)
| 539 | } |
| 540 | |
| 541 | async run(name: string, content: string, callback: (filePath: string) => Promise<void>) { |
| 542 | try { |
| 543 | const filePath = await this.createFile(name, content); |
| 544 | const finalContent = await this.getFileContent(filePath); |
| 545 | await this.openFile(filePath, finalContent); |
| 546 | await callback(filePath); |
| 547 | } finally { |
| 548 | await this.cleanup(); |
| 549 | this.fileManager.setCursorOffset(undefined); |
| 550 | } |
| 551 | } |
| 552 | } |
nothing calls this directly
no test coverage detected