( app: App, file: TFile, mode: CreatedTaskOpenMode )
| 80 | } |
| 81 | |
| 82 | export async function openCreatedTaskFileAfterSave( |
| 83 | app: App, |
| 84 | file: TFile, |
| 85 | mode: CreatedTaskOpenMode |
| 86 | ): Promise<void> { |
| 87 | const leaf = mode === "new-tab" ? app.workspace.getLeaf("tab") : app.workspace.getLeaf(false); |
| 88 | await leaf.openFile(file); |
| 89 | } |
| 90 | |
| 91 | function createEmbeddableMarkdownEditor( |
| 92 | app: App, |
no test coverage detected