()
| 154 | } |
| 155 | |
| 156 | protected getModalEditorFile(): Nullable<TFile> { |
| 157 | const currentTaskPath = this.getCurrentTaskPath(); |
| 158 | if (!currentTaskPath) { |
| 159 | return this.app.workspace.getActiveFile(); |
| 160 | } |
| 161 | |
| 162 | const file = this.app.vault.getAbstractFileByPath(currentTaskPath); |
| 163 | return file instanceof TFile ? file : this.app.workspace.getActiveFile(); |
| 164 | } |
| 165 | |
| 166 | protected async openTaskNote(): Promise<void> { |
| 167 | // Creation modals do not have an existing task note to open. |
nothing calls this directly
no test coverage detected